Hi
I'm trying to recompile my addons against new SDK and I have some problems with Pen and Brush.
Could someone help me with this functions?
Here is what I have how:
So when i use this construction all objects that i'm trying to draw are invisible, but if i remove it, they are visible again but with default HUD color.
Another problem, could anyone give an example that shows how to create a Brush? I've tried different ways, but always had errors during compilation.
Any suggestions?
Thanks!
I'm trying to recompile my addons against new SDK and I have some problems with Pen and Brush.
Could someone help me with this functions?
Here is what I have how:
Code:
class SouyzTM: public VESSEL3
{
public:
bla-bla-bla
private:
oapi::Pen *Pen_white;
};
Code:
void SouyzTM::clbkPostCreation()
{
.......
Pen_white = oapiCreatePen (PS_SOLID, 1, RGB (100,100,100));
}
So when i use this construction all objects that i'm trying to draw are invisible, but if i remove it, they are visible again but with default HUD color.
Another problem, could anyone give an example that shows how to create a Brush? I've tried different ways, but always had errors during compilation.
Any suggestions?
Thanks!
Last edited:
