How can I do that? How can I draw graph, not static image, not texture, just simple pixel in my window(IGUIWindow)?
//I'm from Russia, so excuse me for my little english.
And I not want to create new driver for doing "driver->draw2DLine(x,y,x,y)" - I think it's not cool =\
draw simple pixel in IGUIWindow
I think you can view the code in Irrlicht source, may be the draw2Dline function to show how irrlicht draw a pixel...
Hope this helpul!
Hope this helpul!
Project homepage: http://fosp.wordpress.com/
Project Forum URL: http://forum.gamedev.vn/index.php?showforum=74
Project Google Group: http://groups.google.com/group/fosproject
Engine Project: http://code.google.com/p/fosengine/
Project Forum URL: http://forum.gamedev.vn/index.php?showforum=74
Project Google Group: http://groups.google.com/group/fosproject
Engine Project: http://code.google.com/p/fosengine/
ok, thanks, I thought that irrlicht should give me that chance to simple draw point, becouse it's so trivial! o_O =(
Last edited by Fk on Thu Jul 10, 2008 2:54 pm, edited 1 time in total.
I'm curious how you intend to draw a graph with points instead of lines (unless you are doing a scatter plot) and make it cool. Most of the cool graphs are based on lines, bars or pies.
BTW, I wrote a line graph gui element a while back. I have it at home and I could post the code if you'd like.
Travis
BTW, I wrote a line graph gui element a while back. I have it at home and I could post the code if you'd like.
Travis
I writing code that will output graph of my math function to IGUIWindow. And that graph must be resizeable as window by wheel.
=>window(IGUI)=>image=>texture
I recompiled engine. Window is resizeable by wheel now. And image too.
Now I have problem with texture and her size. But I think I cope with it.
If you have a code help me, so write it, thanks. =)
Excuse me for my little english again.
=>window(IGUI)=>image=>texture
I recompiled engine. Window is resizeable by wheel now. And image too.
Code: Select all
if(event.EventType == EET_MOUSE_INPUT_EVENT && event.MouseInput.Event==EMIE_MOUSE_WHEEL) ViewGraph++;
Code: Select all
while(device->run()){
driver->beginScene(true, true, video::SColor(0,100,100,100));
if(ViewGraph>1) img->setRelativePosition(core::rect<s32>::rect(4,20,window->getAbsolutePosition().getWidth()-5,window->getAbsolutePosition().getHeight()-5));
If you have a code help me, so write it, thanks. =)
Excuse me for my little english again.