how to draw 2d images to screen with opengl in c++

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
MaDpRoGrAmMeR
Posts: 12
Joined: Fri Sep 24, 2004 5:26 pm

how to draw 2d images to screen with opengl in c++

Post by MaDpRoGrAmMeR »

i want to draw some picture NOT TEXTURE how can i do this i'm trying and trying but nope i can use jpeg library and glaux or opengl glut whatever please help me. niko i try to solve your draw2dImage code but it is too complicated please help :cry:
..:::radiation interactive:::..
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

It isn't complicated at all.

driver->draw2DImage(driver->getTexture("linktoyourimage.ext"), irr::core::position2d<int>(x,y));

Change x and y to the position where you want the image to appear and of course change filename... And place it inside the draw loop.
General Tools List
General FAQ
System: AMD Barton 2600+, 512MB, 9600XT 256MB, WinXP + FC3
MaDpRoGrAmMeR
Posts: 12
Joined: Fri Sep 24, 2004 5:26 pm

Post by MaDpRoGrAmMeR »

i didn't mean this i meant how can i do this in open gl with other libraries not in irllicht i'm makin' a new engine
..:::radiation interactive:::..
uzik
Posts: 24
Joined: Wed Sep 22, 2004 4:56 pm

Post by uzik »

why don't you ask this question in the forums for those libraries?
This is the irrlicht forum.
Post Reply