sivarajankumar / screen3d

Automatically exported from code.google.com/p/screen3d
0 stars 0 forks source link

[Screen/Core] implement RenderTarget/RenderWindow/RenderTexture #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
for now, only a basic RenderWindow class exists for displaying a simple window. 
This class only contains methods :

init
isRunning
swapBuffers

The goal of this enhancement is to provide better and standard services to 
manipulate render targets (not only render windows but also render textures and 
multi render target (MRT))

For now, MRT will not be implemented

global architecture :

RenderWindow -------|
                    |
RenderTexture ------|-----|> RenderTarget ------|> Resource<>
                    |
MultiRenderTarget --|

non-exhaustive RenderTarget method list :

//size
getWidth
getHeight

//pixel format
getPixelFormat
setPixelFormat

//camera handling
addCamera
getCamera
useCamera
removeCamera
removeAllCamera
...

//buffer swaps
waitForVSync
swapBuffers

//FPS counter
...

non-exhaustive RenderWindow method list :

//full-screen
setFullScreen
isFullScreen

//position and size
resize
reposition

//state
isVisible
setVisible
isClosed
...

Original issue reported on code.google.com by thoratou@gmail.com on 26 Jul 2010 at 11:43