blaze
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules
Render targets

Render targets. More...

Data Structures

struct  BLZ_RenderTarget
 Render target object. More...
 

Functions

BLZAPIENTRY int BLZAPICALL BLZ_BindRenderTarget (struct BLZ_RenderTarget *target)
 Binds the specified render target for output. More...
 
BLZAPIENTRY struct
BLZ_RenderTarget *BLZAPICALL 
BLZ_CreateRenderTarget (int width, int height)
 Creates a RGBA render target using specified parameters. More...
 
BLZAPIENTRY int BLZAPICALL BLZ_FreeRenderTarget (struct BLZ_RenderTarget *target)
 Destroys the specified render target. More...
 

Detailed Description

Render targets.

Allows rendering to texture and using it later for some other purpose like post-processing effects.

Function Documentation

BLZAPIENTRY int BLZAPICALL BLZ_BindRenderTarget ( struct BLZ_RenderTarget target)

Binds the specified render target for output.

Parameters
targetThe render target to use, or NULL if we should draw to screen
BLZAPIENTRY struct BLZ_RenderTarget* BLZAPICALL BLZ_CreateRenderTarget ( int  width,
int  height 
)

Creates a RGBA render target using specified parameters.

BLZAPIENTRY int BLZAPICALL BLZ_FreeRenderTarget ( struct BLZ_RenderTarget target)

Destroys the specified render target.