-
Posts
2,953 -
Joined
-
Last visited
Content Type
Blogs
Forums
Store
Gallery
Videos
Posts posted by Roland
-
-
Ooops I missed one line :)
auto sidepanel = CreatePanel(0, 0, SIDEPANELWIDTH, sz.y, mainpanel); sidepanel->SetLayout(0, 1, 1, 1); sidepanel->SetColor(1, 0, 0);
- 1
-
sidepanel->SetLayout(1, 0, 1, 1);
-
Should be
-
Sure. Will fix that ??
-
-
All Create functions in the GUI part are returning Widget's as shared pointers.
Does this mean that the AppKit also owns the returned Widget internally and destroys them internally att program exit? -
I'm working on a little project where I need to make some simple image processing such as rotation, brightness, contrast and so on.
FreeImage is a nice lib for those things and I noticed that it's already included in the FITextueLoader Plugin so that's nice.Is there a way to access the pixel-data in Pixmap so it an be used with the FreeImage functions?
Actually something like this:
FIBITMAP* Pixmap2FreeImage( std::shared_ptr<Pixmap> pixmap ) { FIBITMAP* bmp = //??? pixmap->???? // ???? return bmp; } std::shared_ptr<UltraEngine::Pixmap> FreeImage2Pixmap(FIBITMAP* source) { std::shared_ptr<UltraEngine::Pixmap> pixmap = std::make_shared<UltraEngine::Pixmap>( ); // ??? return pixmap; }
-
Okay and thanks
-
-
Small things but somebody have to report them ?
x, width should be x, r
y, height should be x, g
- 1
-
-
Just a thought. Might something like this work. Change the return values of newline to whatever suitable
-
-
-
Ok I see. My vote goes for the last suggestion "different groups of constants be broken up into different pages".
I don't know how you divide them up in the source code, but as I see it the same principle should be used there.
Not having any global constants.h -
Solution: Add following lines to CPP\Constants.md
#### TextureFormat #### - TEXTURE_FORMAT_UNDEFINED - TEXTURE_RGBA_UINT - TEXTURE_RED - TEXTURE_RG - TEXTURE_RGB - TEXTURE_RGBA - TEXTURE_BGR - TEXTURE_BGRA - TEXTURE_RGB8 - TEXTURE_RGBA8 - TEXTURE_BGR8 - TEXTURE_BGRA8 - TEXTURE_RED16 - TEXTURE_R16 - TEXTURE_RGBA16 - TEXTURE_BC1 - TEXTURE_DXT1 - TEXTURE_BC3 - TEXTURE_DXT5 = TEXTURE_BC3 - TEXTURE_BC5 - TEXTURE_BC7 - TEXTURE_COLOR - TEXTURE_DEPTH
-
-
auto cam = Camera::Create(); cam->SetFOV(60.0f); cam->SetZoom(1); cam->SetRange(0.1f, 500.0f); cam->SetFogColor(0.7f, 0.7f, 0.7f, 1.0f); cam->SetFogAngle(5.0f, 20.0f); cam->SetFogMode(true); cam->SetFogRange(2.0f, 30.0f);
-
Check your Debugger path
- 1
-
-
1 hour ago, cassius said:
Has not worked for me up to now.
I will keep trying.
Its your problem the same one or something else ?
-
Debug Working Directory is wrong.Change $(SolutionDir)\..\..\.. to $(SolutionDir)..\..
Se my post here
- 1
-
entity is the one you collided with
position is the position of the entity when collision happened
normal is the direction of the collision
speed is the speed of the collission entity
- 1
-
Works fine here
- 1
Convert a string value from text to boolean?
in Programming
Posted
WString newState = "false"; // or = "true" auto myCheck = CreateButton("MyCheckbox", x, y+50, 20, 20, this->ui->root, ButtonStyle::BUTTON_CHECKBOX); myCheck->SetState( newState == "true" );