[solved] draw2DAnything() won't work

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Apoptyzm
Posts: 19
Joined: Tue Sep 23, 2008 7:53 pm

[solved] draw2DAnything() won't work

Post by Apoptyzm »

Hello, i have a simple loop that won't work:

Code: Select all

while(! woman->ready()){ //game loop
//(...)

driver->beginScene(true, true, 0);

//game stuff
GC.tick(FrameTick );

//This line doesn't work, like every type of draw2D	
driver->draw2DLine(core::vector2d<s32>(100,100),core::vector2d<s32>(500,500),video::SColor(255,255,255,255) );

smgr->drawAll();
env->drawAll();//gui

(...)
}
I don't know what am i missing to draw a simple primitive...


--edit--
so simple, thx Virion ;)
Last edited by Apoptyzm on Sat Sep 04, 2010 3:07 pm, edited 1 time in total.
Virion
Competition winner
Posts: 2149
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

you have to put draw2DLine after smgr->drawAll() otherwise it will be rendered behind the 3d scene.
My company: https://kloena.com
My profile: https://zhieng.com
My co-working space: https://deskspace.info
My game engine: https://kemena3d.com
Post Reply