Advertisement

Latest win32 Activity

I've been using VirtualAlloc in some cases, but it never occurred to me using SEH to handle the page-commits. So if understand it correctly, you are trying to remove the need to do if-checks to for resizing/reserving? In this case, as you've seen, this is a pretty bad idea. Any kind of exception-ha…

6,724 views
Advertisement

You need to render your game viewport into a texture.
See https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples#rendering-your-game-scene-into-a-texture

6,272 views
scott8
August 08, 2022 05:31 PM

@foxo You need to create a bitmap and temporary device context (DC) that's compatible with your window. You can get a pointer to the bitmap pixels using GetDIBits. All drawing should be done using the pointer. You then copy the pointer back to the bitmap/dc using SetDIBits. Last step is to blit the…

16,359 views

foxo said:

I also realised that gpu drivers and extremely low level gpu programming are some kind a ‘secret’ knoladge that nobody know how to do except the elit at vulkan and other specialised company that won't tell us there ‘secrets’. that's why I am asking : How to draw from gpu to the screen or …

15,276 views
_WeirdCat_
December 12, 2021 03:20 PM

not sure what do you mean get around, but if it happens that it is repeating event when you don't want that i suggest you make your own keyboard handler where you store pressed keys in a list

if key is pressed run void AddKey( key )

if there is a repeat and the key is already marked as pressed you do…

6,686 views
Advertisement
Advertisement
Advertisement