Changeset 6959
- Timestamp:
- 02/20/08 03:33:42 (5 years ago)
- Location:
- lang/c/GSD/trunk
- Files:
-
- 1 added
- 6 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/c/GSD/trunk/common.h
r6952 r6959 103 103 }; 104 104 105 struct sLocal106 {107 CMutex mutexSettings;108 CSharedMemory smSettings;109 CSharedMemory smPixels;110 111 DWORD offsets[MAX_TEXNUM];112 DWORD sizes[MAX_TEXNUM];113 int maxTextureSize;114 int maxIndex;115 116 sSettings *settings;117 118 sLocal() :119 mutexSettings(MUTEX_SETTINGS)120 {121 int i;122 123 maxTextureSize = 0;124 maxIndex = 0;125 126 smSettings.create(SHARED_SETTINGS, sizeof(sSettings));127 settings = (sSettings *)smSettings.getData();128 129 for(i=0; i<MAX_TEXNUM; i++)130 {131 offsets[i] = 0;132 sizes[i] = 0;133 }134 }135 };136 137 struct GSD_TextureInfo138 {139 BOOL active; // �\�����邩�ۂ� (TRUE�AFALSE)140 DWORD texSize; // �e�N�X�`���̃T�C�Y�A2�ׂ̂����Ȃ����Ȃ��� (�s�N�Z���P�� 0�Ȃ��N�X�`���폜141 int x, y; // �e�N�X�`���̈ʒu (align�̒l�ɂ��Ċ�ʒu���ς�)142 DWORD color; // ���F (�ʏ��� 0xffffffff)143 DWORD align; // �e�N�X�`���̔z�u (DT_LEFT�ADT_CENTER�ADT_RIGHT�ADT_TOP�ADT_VCENTER�ADT_BOTTOM)144 BYTE *data; // �ݒ��ݕύX��������ULL145 };146 147 105 //----------------------------------------------------------------------------- 148 106 -
lang/c/GSD/trunk/gsd.def
r4289 r6959 2 2 SECTIONS 3 3 .sharedata READ WRITE SHARED 4 5 EXPORTS 6 GSD_DataLock @1 7 GSD_DataUnlock @2 8 GSD_DelTexture @3 9 GSD_Finalize @4 10 GSD_GetApiVersion @5 11 GSD_GetLastUpdate @6 12 GSD_GetMaxTextureNum @7 13 GSD_GetMaxTextureSize @8 14 GSD_GetTexture @9 15 GSD_GetVersion @10 16 GSD_InitTexture @11 17 GSD_Initialize @12 18 GSD_SetFpsAlign @13 19 GSD_SetFpsLimit @14 20 GSD_SetTexture @15 21 GSD_SetTimerOrg @16 22 GSD_ShowFps @17 23 GSD_UpdateOnActive @18 -
lang/c/GSD/trunk/gsd.dsp
r6952 r6959 191 191 # Begin Source File 192 192 193 SOURCE=.\gsd.h 194 # End Source File 195 # Begin Source File 196 193 197 SOURCE=.\mmtimer.h 194 198 # End Source File -
lang/c/GSD/trunk/hook.cpp
r6952 r6959 17 17 #include "tools.h" 18 18 #include "version.h" 19 #include "gsd.h" 19 20 20 21 #include "hook.h" … … 260 261 //----------------------------------------------------------------------------- 261 262 262 DllExportBOOL WINAPI GSD_Initialize()263 BOOL WINAPI GSD_Initialize() 263 264 { 264 265 int n1 = 128, n2 = 128, n3 = 128; … … 293 294 //----------------------------------------------------------------------------- 294 295 295 DllExportvoid WINAPI GSD_Finalize()296 void WINAPI GSD_Finalize() 296 297 { 297 298 dllActive = FALSE; … … 312 313 //----------------------------------------------------------------------------- 313 314 314 DllExportint WINAPI GSD_GetMaxTextureNum()315 int WINAPI GSD_GetMaxTextureNum() 315 316 { 316 317 return MAX_TEXNUM; … … 319 320 //----------------------------------------------------------------------------- 320 321 321 DllExportint WINAPI GSD_GetMaxTextureSize()322 int WINAPI GSD_GetMaxTextureSize() 322 323 { 323 324 if(!lo) … … 329 330 //----------------------------------------------------------------------------- 330 331 331 D llExport DWORD WINAPI GSD_GetLastUpdate()332 DWORD WINAPI GSD_GetLastUpdate() 332 333 { 333 334 if(!lo || !lo->settings) … … 339 340 //----------------------------------------------------------------------------- 340 341 341 D llExport DWORD WINAPI GSD_GetVersion()342 DWORD WINAPI GSD_GetVersion() 342 343 { 343 344 sVersionInfo info; … … 359 360 //----------------------------------------------------------------------------- 360 361 361 DllExport BOOL WINAPI GSD_InitTexture(const DWORD *size, int num) 362 DWORD WINAPI GSD_GetApiVersion() 363 { 364 return GSD_APIVER; 365 } 366 367 //----------------------------------------------------------------------------- 368 369 BOOL WINAPI GSD_InitTexture(const DWORD *size, int num) 362 370 { 363 371 int i; … … 411 419 //----------------------------------------------------------------------------- 412 420 413 DllExportBOOL WINAPI GSD_SetTexture(int index, const struct GSD_TextureInfo *info)421 BOOL WINAPI GSD_SetTexture(int index, const struct GSD_TextureInfo *info) 414 422 { 415 423 if(!lo || !lo->settings) … … 445 453 //----------------------------------------------------------------------------- 446 454 447 DllExportBOOL WINAPI GSD_GetTexture(int index, struct GSD_TextureInfo *info)455 BOOL WINAPI GSD_GetTexture(int index, struct GSD_TextureInfo *info) 448 456 { 449 457 if(!lo || !lo->settings) … … 474 482 //----------------------------------------------------------------------------- 475 483 476 DllExportvoid WINAPI GSD_DelTexture(int index)484 void WINAPI GSD_DelTexture(int index) 477 485 { 478 486 if(!lo || !lo->settings) … … 487 495 //----------------------------------------------------------------------------- 488 496 489 DllExportvoid WINAPI GSD_SetTimerOrg(__int64 org)497 void WINAPI GSD_SetTimerOrg(__int64 org) 490 498 { 491 499 if(!lo || !lo->settings) … … 497 505 //----------------------------------------------------------------------------- 498 506 499 DllExportvoid WINAPI GSD_SetFpsLimit(double fps)507 void WINAPI GSD_SetFpsLimit(double fps) 500 508 { 501 509 if(!lo || !lo->settings) … … 510 518 //----------------------------------------------------------------------------- 511 519 512 DllExportvoid WINAPI GSD_SetFpsAlign(DWORD align)520 void WINAPI GSD_SetFpsAlign(DWORD align) 513 521 { 514 522 if(!lo || !lo->settings) … … 520 528 //----------------------------------------------------------------------------- 521 529 522 DllExportvoid WINAPI GSD_ShowFps(BOOL show)530 void WINAPI GSD_ShowFps(BOOL show) 523 531 { 524 532 if(!lo || !lo->settings) … … 530 538 //----------------------------------------------------------------------------- 531 539 532 DllExportvoid WINAPI GSD_UpdateOnActive(BOOL uoa)540 void WINAPI GSD_UpdateOnActive(BOOL uoa) 533 541 { 534 542 if(!lo || !lo->settings) … … 540 548 //----------------------------------------------------------------------------- 541 549 542 DllExportvoid WINAPI GSD_DataLock()550 void WINAPI GSD_DataLock() 543 551 { 544 552 if(!lo) … … 550 558 //----------------------------------------------------------------------------- 551 559 552 DllExportvoid WINAPI GSD_DataUnlock()560 void WINAPI GSD_DataUnlock() 553 561 { 554 562 if(!lo) -
lang/c/GSD/trunk/hook.h
r4289 r6959 16 16 #include <windows.h> 17 17 18 #include "common.h" 19 #include "mutex.h" 20 #include "sharedmem.h" 21 22 struct sLocal 23 { 24 CMutex mutexSettings; 25 CSharedMemory smSettings; 26 CSharedMemory smPixels; 27 28 DWORD offsets[MAX_TEXNUM]; 29 DWORD sizes[MAX_TEXNUM]; 30 int maxTextureSize; 31 int maxIndex; 32 33 sSettings *settings; 34 35 sLocal() : 36 mutexSettings(MUTEX_SETTINGS) 37 { 38 int i; 39 40 maxTextureSize = 0; 41 maxIndex = 0; 42 43 smSettings.create(SHARED_SETTINGS, sizeof(sSettings)); 44 settings = (sSettings *)smSettings.getData(); 45 46 for(i=0; i<MAX_TEXNUM; i++) 47 { 48 offsets[i] = 0; 49 sizes[i] = 0; 50 } 51 } 52 }; 53 18 54 extern HINSTANCE g_hInstance; 19 55 extern BOOL dllActive; -
lang/c/GSD/trunk/resource.rc
r6952 r6959 55 55 56 56 VS_VERSION_INFO VERSIONINFO 57 FILEVERSION 0,7, 0,057 FILEVERSION 0,7,1,0 58 58 PRODUCTVERSION 0,0,0,0 59 59 FILEFLAGSMASK 0x3fL … … 74 74 VALUE "CompanyName", " \0" 75 75 VALUE "FileDescription", "GSD\0" 76 VALUE "FileVersion", "0, 7, 0, 0\0"76 VALUE "FileVersion", "0, 7, 1, 0\0" 77 77 VALUE "InternalName", "\0" 78 78 VALUE "LegalCopyright", "Copyright (C) 2008 ��e5bW6vDOJ.\0"
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)