image = Gosu::Image.new("Datas/editor/render.png") # a white 640 x 480 image
glBindTexture(GL_TEXTURE_2D, image.gl_tex_info.tex_name)
glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, 640, 480)
image.save(certain_path)
Gosu::scale(1, -1, 0, window.height / 2) { ...draw everything... }
glMatrixMode(GL_PROJECTION)
glLoadIdentity
glScale(1.0,-1.0,1.0) if $window.screen
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill