andargor
Flame
- Joined
- May 1, 2011
- Messages
- 3
- Reaction score
- 0
- Points
- 0
Hi, first post, be gentle! 
How would I be able to save mesh textures to file? I've read several threads here and tested a few things, but I can not get it to work. More specifically, the following are my stumbling blocks:
- The use of oapiGetDC or Sketchpad->GetDC return null values most of the time. I understand that this means the texture is in a back buffer, but the rest of the copying and saving code seems to fail because of this
- To CreateCompatibleBitmap, I need a width and a height. Where can I get this? The DC has no dimensions, can I assume 64x64? 32x32? In any case, I get an invalid bitmap as a result.
- Do these operations need to be at any particular point, such as during WM_PAINT?
- Is there a pointer somewhere to the mesh file so I can load textures from there?
I'm using RControl as my testing ground. Thanks for any insight!
PS: I intensely dislike the Windows API :lol:
How would I be able to save mesh textures to file? I've read several threads here and tested a few things, but I can not get it to work. More specifically, the following are my stumbling blocks:
- The use of oapiGetDC or Sketchpad->GetDC return null values most of the time. I understand that this means the texture is in a back buffer, but the rest of the copying and saving code seems to fail because of this
- To CreateCompatibleBitmap, I need a width and a height. Where can I get this? The DC has no dimensions, can I assume 64x64? 32x32? In any case, I get an invalid bitmap as a result.
- Do these operations need to be at any particular point, such as during WM_PAINT?
- Is there a pointer somewhere to the mesh file so I can load textures from there?
I'm using RControl as my testing ground. Thanks for any insight!
PS: I intensely dislike the Windows API :lol: