cffi::memory new #138
Replies: 3 comments 6 replies
-
Can you paste what your definition of |
Beta Was this translation helpful? Give feedback.
-
like this :
and my definition :
I just realized that if I am not in DEBUG mode (print value in my code) the result of the |
Beta Was this translation helpful? Give feedback.
-
I'm afraid, I've been buried in other stuff and not had time to take a closer look at your work. And as you said, the API is pretty complex so not something I can absorb quickly. I am a little confused though that you are working with imgui's C++ definitions and not the cimgui C wrappers. Would the latter not be easier? I thought the whole purpose of imgui was that directX and OpenGL are hidden from the application writer. But perhaps I'm wrong on that. I did tweet about implottk on TclLang. /Ashok |
Beta Was this translation helpful? Give feedback.
-
Hello @apnadkarni ,
Me again...
I’m trying to write this function : D3D11CreateDeviceAndSwapChain following this example
I know, it's a c++, but I ask a question if I correctly define this line with cffi :
set featureLevelArray [cffi::memory new int\[2\] {0xb000 0xa000} ::d3d11::D3D_FEATURE_LEVEL]
(D3D_FEATURE_LEVEL is defined like this)My result of D3D11CreateDeviceAndSwapChain is not
NULL
pointer , but theout
values yes... He wasn't supposed to have one. So I try to go step by step.Nicolas
Beta Was this translation helpful? Give feedback.
All reactions