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.
mike27
Post
by mike27 » Mon Aug 09, 2004 4:09 am
Just as the title says - I am looking for a way to assign RGB values to individual pixels. Ideally, it should look something like this:
Code: Select all
int x = 10;
int y = 100;
int red = 255;
int green = 0;
int blue = 128;
irrDevice->setpixelto(x, y, red, green, blue);
blayde
Posts: 45 Joined: Fri Jul 16, 2004 12:49 pm
Contact:
Post
by blayde » Wed Aug 11, 2004 9:38 am
i dont know if the engine supports a function like that.
but somthign that would have the same result would be to load a 1 pixel sized picture and then display it at the pixel you want it visible.
knightoflight
Posts: 199 Joined: Sun Aug 24, 2003 5:47 pm
Location: Germany
Post
by knightoflight » Fri Aug 13, 2004 12:13 pm
@blayde: its a nice idea to draw a pic and load it. And if you want to draw lines, you paint pics of all angles and lenghts a line could have and load them ;-) ?
ok, maybe in v0.6 you could better use draw2DRectangle with an rectange of one pixel, what do you think ?