and tinman already told you why.Polo wrote: [...]
and that's that stuff which doesn't work
don't get me wrong, but are you sure you know what you're doing there?
however, if you really want to use your code as a library which could also mean flexibility to a certain degree,
I would define the PFD inside PureBasic and pass this to the function.
Code: Select all
pfd.PIXELFORMATDESCRIPTOR
pfd\nSize = SizeOf(PIXELFORMATDESCRIPTOR)
pfd\nVersion = 1
pfd\dwFlags = #PFD_DRAW_TO_WINDOW | #PFD_SUPPORT_OPENGL | #PFD_DOUBLEBUFFER
pfd\iPixelType = #PFD_TYPE_RGBA
.
.
.
.
etc.
on the other hand, you won't need the PFD outside of your function, so why bother with that?




