Home Cavernosa
PyGLUT GAME BOY
ADVANCE
Nintendo DS Java
Misc Code Links
My Site
Intro
Cavernosa
PyGLUT
Game Boy Advance
Nintendo DS
Java
Misc Code
Links
 
Misc Code
Intro
 
Email me
mailto
 
Printer
Friendly

 
  

Misc Code

Contents
OpenGL Back Buffer

OpenGL Back Buffer
If you want your low-resolution software rendering to fill the screen on a variety of different platforms, some of which don't have direct hardware framebuffer access APIs, what do you do?

The answer embodied in this C++ class and demo driver is to use OpenGL hardware to do a screen-filling stretched blit of a software framebuffer. It works by downloading the framebuffer to a GL texture and then drawing a quad that fits neatly into the current viewport with it.

Copyright © Andrew H. Cox. All rights reserved.
ahcox@btinternet.com