Skip to content

Commit f483ba0

Browse files
committed
[ReactX] Put in the stubs for the future
1 parent 9601f56 commit f483ba0

34 files changed

Lines changed: 869 additions & 0 deletions

dll/directx/d3dim/CMakeLists.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
spec2def(d3dim.dll d3dim.spec ADD_IMPORTLIB)
2+
3+
list(APPEND SOURCE
4+
d3dim.c)
5+
6+
add_library(d3dim MODULE
7+
${SOURCE}
8+
d3dim.rc
9+
${CMAKE_CURRENT_BINARY_DIR}/d3dim_stubs.c
10+
${CMAKE_CURRENT_BINARY_DIR}/d3dim.def)
11+
12+
set_module_type(d3dim win32dll)
13+
target_link_libraries(d3dim dxguid uuid)
14+
add_importlibs(d3dim advapi32 version user32 gdi32 msvcrt kernel32 ntdll)
15+
add_cd_file(TARGET d3dim DESTINATION reactos/system32 FOR all)

dll/directx/d3dim/d3dim.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#include <windows.h>
2+
#include "d3dim.h"
3+
#include <debug.h>
4+
5+
BOOL APIENTRY DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
6+
{
7+
switch (ul_reason_for_call)
8+
{
9+
case DLL_PROCESS_ATTACH:
10+
case DLL_THREAD_ATTACH:
11+
case DLL_THREAD_DETACH:
12+
case DLL_PROCESS_DETACH:
13+
break;
14+
}
15+
16+
return TRUE;
17+
}

dll/directx/d3dim/d3dim.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#include <windows.h>
2+
3+
#define DLLAPI __declspec(dllexport)

dll/directx/d3dim/d3dim.rc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
#define REACTOS_VERSION_DLL
3+
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Direct3D\0"
4+
#define REACTOS_STR_INTERNAL_NAME "d3dim\0"
5+
#define REACTOS_STR_ORIGINAL_FILENAME "d3dim.dll\0"
6+
7+
#include <reactos/reactx.h>
8+
9+
#include <reactos/version.rc>

dll/directx/d3dim/d3dim.spec

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@ stdcall -stub D3DFree(ptr)
2+
@ stdcall -stub D3DMalloc(ptr long)
3+
@ stdcall -stub D3DRealloc(ptr long)
4+
@ stdcall -stub Direct3DCreateDevice(ptr ptr ptr ptr ptr ptr)
5+
@ stdcall -stub Direct3DCreateTexture(ptr ptr ptr ptr)
6+
@ stdcall -stub Direct3DGetSWRastZPixFmts(ptr)
7+
@ stdcall -stub Direct3DCreate(long long ptr)
8+
@ stdcall -stub Direct3D_HALCleanUp(long long)
9+
@ stdcall -stub FlushD3DDevices2(long)
10+
@ stdcall -stub FlushD3DDevices(long)
11+
@ stdcall -stub PaletteAssociateNotify(long long long long)
12+
@ stdcall -stub PaletteUpdateNotify(long long long long ptr)
13+
@ stdcall -stub SurfaceFlipNotify(long)

dll/directx/d3drm/CMakeLists.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
spec2def(d3drm.dll d3drm.spec ADD_IMPORTLIB)
2+
3+
list(APPEND SOURCE
4+
d3drm_main.c)
5+
6+
add_library(d3drm MODULE
7+
${SOURCE}
8+
d3drm.rc
9+
${CMAKE_CURRENT_BINARY_DIR}/d3drm_stubs.c
10+
${CMAKE_CURRENT_BINARY_DIR}/d3drm.def)
11+
12+
set_module_type(d3drm win32dll UNICODE)
13+
target_link_libraries(d3drm dxguid uuid)
14+
add_importlibs(d3drm ddraw d3dxof msvcrt kernel32 ntdll)
15+
add_pch(d3drm precomp.h SOURCE)
16+
add_cd_file(TARGET d3drm DESTINATION reactos/system32 FOR all)

dll/directx/d3drm/d3drm.rc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
#define REACTOS_VERSION_DLL
3+
#define REACTOS_STR_FILE_DESCRIPTION "React3D Retained Mode DLL"
4+
#define REACTOS_STR_INTERNAL_NAME "d3drm"
5+
#define REACTOS_STR_ORIGINAL_FILENAME "d3drm.dll"
6+
7+
#include <reactos/reactx.h>
8+
9+
#include <reactos/version.rc>

dll/directx/d3drm/d3drm.spec

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
@ stdcall -stub D3DRMColorGetAlpha(long)
2+
@ stdcall -stub D3DRMColorGetBlue(long)
3+
@ stdcall -stub D3DRMColorGetGreen(long)
4+
@ stdcall -stub D3DRMColorGetRed(long)
5+
@ stdcall -stub D3DRMCreateColorRGB(float float float)
6+
@ stdcall -stub D3DRMCreateColorRGBA(float float float float)
7+
@ stdcall -stub D3DRMMatrixFromQuaternion(ptr ptr)
8+
@ stdcall -stub D3DRMQuaternionFromRotation(ptr ptr float)
9+
@ stdcall -stub D3DRMQuaternionMultiply(ptr ptr ptr)
10+
@ stdcall -stub D3DRMQuaternionSlerp(ptr ptr ptr float)
11+
@ stdcall -stub D3DRMVectorAdd(ptr ptr ptr)
12+
@ stdcall -stub D3DRMVectorCrossProduct(ptr ptr ptr)
13+
@ stdcall -stub D3DRMVectorDotProduct(ptr ptr)
14+
@ stdcall -stub D3DRMVectorModulus(ptr)
15+
@ stdcall -stub D3DRMVectorNormalize(ptr)
16+
@ stdcall -stub D3DRMVectorRandom(ptr)
17+
@ stdcall -stub D3DRMVectorReflect(ptr ptr ptr)
18+
@ stdcall -stub D3DRMVectorRotate(ptr ptr ptr float)
19+
@ stdcall -stub D3DRMVectorScale(ptr ptr float)
20+
@ stdcall -stub D3DRMVectorSubtract(ptr ptr ptr)
21+
@ stdcall -stub Direct3DRMCreate(ptr)
22+
@ stdcall -stub -private DllCanUnloadNow()
23+
@ stdcall -stub -private DllGetClassObject(ptr ptr ptr)

dll/directx/d3drm/d3drm_main.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
#include <windows.h>
3+
#include <debug.h>
4+
5+
6+
BOOL APIENTRY DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
7+
{
8+
switch (ul_reason_for_call)
9+
{
10+
case DLL_PROCESS_ATTACH:
11+
case DLL_THREAD_ATTACH:
12+
case DLL_THREAD_DETACH:
13+
case DLL_PROCESS_DETACH:
14+
break;
15+
}
16+
17+
return TRUE;
18+
}

dll/directx/d3drm/precomp.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
#ifndef _D3DRM_PRECOMP_H_
3+
#define _D3DRM_PRECOMP_H_
4+
5+
#include <windef.h>
6+
#include <winbase.h>
7+
#include <wingdi.h>
8+
9+
#endif /* _D3DRM_PRECOMP_H_ */

0 commit comments

Comments
 (0)