开发者

OpenGL graphics editor...implementation of eraser tool

开发者 https://www.devze.com 2023-01-01 22:03 出处:网络
i\'m writing a menu-based OpenGL graphics ed开发者_JS百科itor.It is pretty basic. Every time i choose a new option in the pop-down menu, the older drawing disappears,this doesn\'t allow me to use the

i'm writing a menu-based OpenGL graphics ed开发者_JS百科itor.It is pretty basic. Every time i choose a new option in the pop-down menu, the older drawing disappears,this doesn't allow me to use the eraser tool...could anybody tell me how to solve this problem?thanx


Your question is vague. Anyway...

Are you drawing picture directly on the screen/window? Then of COURSE drawings will disappear.

Paint picture to texture (framebufferObjects or whatever. See NVidia OpenGL SDK for examples). Then render texture on the screen. clear screen, draw texture, then draw menu, every time you need to repaint window.

0

精彩评论

暂无评论...
验证码 换一张
取 消