Nebula
Loading...
Searching...
No Matches
StaticUI::UltralightRenderer Class Reference

#include <ultralightrenderer.h>

Inherits ultralight::GPUDriver.

Classes

struct  GeometryHandle
 
struct  RenderBufferHandle
 
struct  TextureHandle
 

Public Member Functions

 UltralightRenderer ()
 Constructor.
 
 ~UltralightRenderer ()
 Destructor.
 
uint32_t NextTextureId () override
 Get next texture.
 
void CreateTexture (uint32_t texture_id, ultralight::Ref< ultralight::Bitmap > bitmap) override
 Create texture.
 
void UpdateTexture (uint32_t texture_id, ultralight::Ref< ultralight::Bitmap > bitmap) override
 Update texture.
 
void DestroyTexture (uint32_t texture_id) override
 Destroy texture.
 
uint32_t NextRenderBufferId () override
 Get next render buffer id.
 
void CreateRenderBuffer (uint32_t render_buffer_id, const ultralight::RenderBuffer &buffer) override
 Create render target.
 
void DestroyRenderBuffer (uint32_t render_buffer_id) override
 Destroy render target.
 
uint32_t NextGeometryId () override
 Get next geometry.
 
void CreateGeometry (uint32_t geometry_id, const ultralight::VertexBuffer &vertices, const ultralight::IndexBuffer &indices) override
 Create geometry.
 
void UpdateGeometry (uint32_t geometry_id, const ultralight::VertexBuffer &vertices, const ultralight::IndexBuffer &indices) override
 Update geometry.
 
void DestroyGeometry (uint32_t geometry_id) override
 Destroy geometry.
 
void UpdateCommandList (const ultralight::CommandList &list) override
 Fill list of draw commands.
 
void BeginSynchronize () override
 Begin synchronization.
 
void EndSynchronize () override
 End synchronization.
 
void PreDraw (const ultralight::RenderTarget &view)
 Run through command lists and setup constants.
 
void Render (const CoreGraphics::CmdBufferId &cmds, IndexT bufferIndex)
 Execute command lists.
 
void DrawToBackbuffer (const CoreGraphics::CmdBufferId &cmds, IndexT bufferIndex)
 Render to screen.
 

Private Attributes

Util::HashTable< uint, TextureHandletextureMap
 
Util::HashTable< uint, RenderBufferHandlerenderBufferMap
 
Util::HashTable< uint, GeometryHandlegeometryMap
 
uint textureId
 
uint renderBufferId
 
uint geometryId
 
Util::Array< ultralight::Command > commands
 
Util::Array< uintconstantOffsets
 

Friends

uint GetTexture (UltralightRenderer *renderer, uint textureId)
 

Constructor & Destructor Documentation

◆ UltralightRenderer()

StaticUI::UltralightRenderer::UltralightRenderer ( )

Constructor.

◆ ~UltralightRenderer()

StaticUI::UltralightRenderer::~UltralightRenderer ( )

Destructor.

Member Function Documentation

◆ BeginSynchronize()

void StaticUI::UltralightRenderer::BeginSynchronize ( )
override

Begin synchronization.

◆ CreateGeometry()

void StaticUI::UltralightRenderer::CreateGeometry ( uint32_t geometry_id,
const ultralight::VertexBuffer & vertices,
const ultralight::IndexBuffer & indices )
override

Create geometry.

◆ CreateRenderBuffer()

void StaticUI::UltralightRenderer::CreateRenderBuffer ( uint32_t render_buffer_id,
const ultralight::RenderBuffer & buffer )
override

Create render target.

◆ CreateTexture()

void StaticUI::UltralightRenderer::CreateTexture ( uint32_t texture_id,
ultralight::Ref< ultralight::Bitmap > bitmap )
override

Create texture.

◆ DestroyGeometry()

void StaticUI::UltralightRenderer::DestroyGeometry ( uint32_t geometry_id)
override

Destroy geometry.

◆ DestroyRenderBuffer()

void StaticUI::UltralightRenderer::DestroyRenderBuffer ( uint32_t render_buffer_id)
override

Destroy render target.

◆ DestroyTexture()

void StaticUI::UltralightRenderer::DestroyTexture ( uint32_t texture_id)
override

Destroy texture.

◆ DrawToBackbuffer()

void StaticUI::UltralightRenderer::DrawToBackbuffer ( const CoreGraphics::CmdBufferId & cmds,
IndexT bufferIndex )

Render to screen.

◆ EndSynchronize()

void StaticUI::UltralightRenderer::EndSynchronize ( )
override

End synchronization.

◆ NextGeometryId()

uint32_t StaticUI::UltralightRenderer::NextGeometryId ( )
override

Get next geometry.

◆ NextRenderBufferId()

uint32_t StaticUI::UltralightRenderer::NextRenderBufferId ( )
override

Get next render buffer id.

◆ NextTextureId()

uint32_t StaticUI::UltralightRenderer::NextTextureId ( )
override

Get next texture.

◆ PreDraw()

void StaticUI::UltralightRenderer::PreDraw ( const ultralight::RenderTarget & view)

Run through command lists and setup constants.

◆ Render()

void StaticUI::UltralightRenderer::Render ( const CoreGraphics::CmdBufferId & cmds,
IndexT bufferIndex )

Execute command lists.

◆ UpdateCommandList()

void StaticUI::UltralightRenderer::UpdateCommandList ( const ultralight::CommandList & list)
override

Fill list of draw commands.

◆ UpdateGeometry()

void StaticUI::UltralightRenderer::UpdateGeometry ( uint32_t geometry_id,
const ultralight::VertexBuffer & vertices,
const ultralight::IndexBuffer & indices )
override

Update geometry.

◆ UpdateTexture()

void StaticUI::UltralightRenderer::UpdateTexture ( uint32_t texture_id,
ultralight::Ref< ultralight::Bitmap > bitmap )
override

Update texture.

Friends And Related Symbol Documentation

◆ GetTexture

uint GetTexture ( UltralightRenderer * renderer,
uint textureId )
friend

Member Data Documentation

◆ commands

Util::Array<ultralight::Command> StaticUI::UltralightRenderer::commands
private

◆ constantOffsets

Util::Array<uint> StaticUI::UltralightRenderer::constantOffsets
private

◆ geometryId

uint StaticUI::UltralightRenderer::geometryId
private

◆ geometryMap

Util::HashTable<uint, GeometryHandle> StaticUI::UltralightRenderer::geometryMap
private

◆ renderBufferId

uint StaticUI::UltralightRenderer::renderBufferId
private

◆ renderBufferMap

Util::HashTable<uint, RenderBufferHandle> StaticUI::UltralightRenderer::renderBufferMap
private

◆ textureId

uint StaticUI::UltralightRenderer::textureId
private

◆ textureMap

Util::HashTable<uint, TextureHandle> StaticUI::UltralightRenderer::textureMap
private

The documentation for this class was generated from the following files: