mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
Update devcontainer configuration and working in CreateDevice call
This commit is contained in:
parent
5a4b6e6919
commit
31106b8091
@ -1,7 +1,15 @@
|
||||
{
|
||||
"name": "ubuntu-jammy",
|
||||
"image": "ubuntu-latest",
|
||||
"name": "ubuntu",
|
||||
"image": "docker.io/library/ubuntu",
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"ms-vscode.cpptools-extension-pack"
|
||||
]
|
||||
}
|
||||
},
|
||||
"features": {
|
||||
},
|
||||
"onCreateCommand": "apt update && apt install sudo git",
|
||||
"postCreateCommand": "sudo ./build.sh"
|
||||
}
|
||||
}
|
@ -3,4 +3,4 @@
|
||||
#define DEBUG true
|
||||
|
||||
//PREPROCESSING ONLY!!!
|
||||
#define PROJECT_SOURCE_DIR "/home/eduardo/Documentos/proj/OpenDX/"
|
||||
#define PROJECT_SOURCE_DIR "/workspaces/OpenDX/"
|
||||
|
@ -12,6 +12,9 @@
|
||||
#include <xf86drm.h>
|
||||
#include <xf86drmMode.h>
|
||||
|
||||
//TODO: add ifdefs when implementing another gpu
|
||||
#include <drm/i915_drm.h>
|
||||
|
||||
IDirect3D9::IDirect3D9 (UINT SDKVersion) {
|
||||
#ifdef DEBUG
|
||||
std::cout << "libd3d9.so: IDirect3D9::IDirect3D9()" << std::endl;
|
||||
@ -93,7 +96,13 @@ HRESULT IDirect3D9::CreateDevice(
|
||||
D3DPRESENT_PARAMETERS *pPresentationParameters,
|
||||
IDirect3DDevice9 **ppReturnedDeviceInterface
|
||||
) {
|
||||
return 0;
|
||||
#ifdef DEBUG
|
||||
std::cout << "libd3d9.so: IDirect3D9::CreateDevice()" << std::endl;
|
||||
#endif
|
||||
|
||||
//get hwnd size
|
||||
RECT rect;
|
||||
GetClientRect(hFocusWindow, &rect);
|
||||
}
|
||||
|
||||
ULONG IDirect3D9::Release() {
|
||||
|
@ -28,7 +28,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
||||
//ZeroMemory(&pp, sizeof(pp));
|
||||
pp.Windowed = TRUE;
|
||||
pp.SwapEffect = D3DSWAPEFFECT_DISCARD;
|
||||
//pD3D->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd, D3DCREATE_HARDWARE_VERTEXPROCESSING, &pp, &pDevice);
|
||||
pD3D->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd, 0/*D3DCREATE_HARDWARE_VERTEXPROCESSING*/, &pp, &pDevice);
|
||||
|
||||
// Enter the message loop
|
||||
MSG msg;
|
||||
|
Loading…
x
Reference in New Issue
Block a user