Forge
Utility & Helper Functions

Functions

FGAPI fg_err fg_update_vertex_buffer (const unsigned pBufferId, const size_t pBufferSize, const void *pBufferData)
 Update backend specific vertex buffer from given host side memory. More...
 
FGAPI fg_err fg_update_pixel_buffer (const unsigned pBufferId, const size_t pBufferSize, const void *pBufferData)
 Update backend specific pixel buffer from given host side memory. More...
 
FGAPI fg_err fg_finish ()
 Sync all rendering operations till this point. More...
 

Detailed Description

Function Documentation

§ fg_finish()

FGAPI fg_err fg_finish ( )

Sync all rendering operations till this point.

Returns
fg_err error code

§ fg_update_pixel_buffer()

FGAPI fg_err fg_update_pixel_buffer ( const unsigned  pBufferId,
const size_t  pBufferSize,
const void *  pBufferData 
)

Update backend specific pixel buffer from given host side memory.

Parameters
[in]pBufferIdis the buffer identifier
[in]pBufferSizeis the buffer size in bytes
[in]pBufferDatais the pointer of the host side memory
Returns
fg_err error code

§ fg_update_vertex_buffer()

FGAPI fg_err fg_update_vertex_buffer ( const unsigned  pBufferId,
const size_t  pBufferSize,
const void *  pBufferData 
)

Update backend specific vertex buffer from given host side memory.

Parameters
[in]pBufferIdis the buffer identifier
[in]pBufferSizeis the buffer size in bytes
[in]pBufferDatais the pointer of the host side memory
Returns
fg_err error code