API Documentation
Loading...
Searching...
No Matches
GraphicsSession Class Referenceabstract

#include <GraphicsSession.h>

Inheritance diagram for GraphicsSession:
[legend]
Collaboration diagram for GraphicsSession:
[legend]

Public Member Functions

virtual ~GraphicsSession ()
 
virtual void addModel (const UUID &object)
 
virtual void addCamera (const UUID &object)
 
virtual void addScene (const UUID &scene)
 
virtual void addMaterial (const UUID &material)
 
virtual void addGeometry (const UUID &geo)
 
virtual void readShader (const String &shader)=0
 
virtual void removeModel (const UUID &model)
 
virtual void removeMaterial (const UUID &material)
 
virtual void removeGeometry (const UUID &geo)
 
virtual void removeCamera (const UUID &camera)
 
virtual void setupScene (GraphicsUpdateArguments &args)
 
virtual void addRenderObject (GraphicsUpdateArguments &args, Model &model)
 
virtual void addRenderObject (const Scene &scene, const Model &model, const Material &mat, const Geometry &mesh, PrimitiveProperty property)=0
 
virtual DynamicPointer< GraphicsPipelinecreateRenderPipeline ()=0
 
virtual void postClearAll ()
 
virtual UUID uuid ()=0
 
- Public Member Functions inherited from GraphicsPipeline
virtual ~GraphicsPipeline ()
 
virtual bool runCommand (GraphicsUpdateArguments &args)=0
 
virtual void commit (GraphicsUpdateArguments &args)=0
 
virtual void updateUniformBuffer (GraphicsUpdateArguments &args)=0
 
virtual bool createPipeline (GraphicsUpdateArguments &args)=0
 
virtual const ConstPointer< GraphicsDevice > & device () const =0
 
virtual const DynamicPointer< GraphicsDevice > & device ()=0
 
virtual bool hasCommand () const =0
 
virtual void drawFrame (GraphicsUpdateArguments &args)=0
 
virtual void ensureLastRenderComplete ()=0
 
virtual void cleanup ()=0
 
virtual void setWindowInstance (WindowInstance *instance)=0
 
virtual void cleanResources ()=0
 
virtual void init (GraphicsUpdateArguments &args)=0
 

Protected Attributes

Dictionary< UUID, uint04m_added_models
 
Buffer< UUIDm_added_cameras
 
bool m_needs_model_refresh = true
 
bool m_needs_command_refresh = false
 
bool m_needs_clear_all = false
 

Constructor & Destructor Documentation

◆ ~GraphicsSession()

virtual ~GraphicsSession ( )
inlinevirtual

Member Function Documentation

◆ addCamera()

void addCamera ( const UUID & object)
virtual

◆ addGeometry()

void addGeometry ( const UUID & geo)
virtual

◆ addMaterial()

void addMaterial ( const UUID & material)
virtual

◆ addModel()

void addModel ( const UUID & object)
virtual

◆ addRenderObject() [1/2]

virtual void addRenderObject ( const Scene & scene,
const Model & model,
const Material & mat,
const Geometry & mesh,
PrimitiveProperty property )
pure virtual

Implemented in GLESGraphicsSession, and VulkanSession.

◆ addRenderObject() [2/2]

void addRenderObject ( GraphicsUpdateArguments & args,
Model & model )
virtual

◆ addScene()

void addScene ( const UUID & scene)
virtual

◆ createRenderPipeline()

virtual DynamicPointer< GraphicsPipeline > createRenderPipeline ( )
pure virtual

Implemented in GLESGraphicsSession, and VulkanSession.

◆ postClearAll()

void postClearAll ( )
virtual

Reimplemented in GLESGraphicsSession, and VulkanSession.

◆ readShader()

virtual void readShader ( const String & shader)
pure virtual

Implemented in GLESGraphicsSession, and QtVulkanSession.

◆ removeCamera()

void removeCamera ( const UUID & camera)
virtual

◆ removeGeometry()

void removeGeometry ( const UUID & geo)
virtual

Reimplemented in GLESGraphicsSession, and VulkanSession.

◆ removeMaterial()

void removeMaterial ( const UUID & material)
virtual

Reimplemented in GLESGraphicsSession, and VulkanSession.

◆ removeModel()

void removeModel ( const UUID & model)
virtual

Reimplemented in GLESGraphicsSession.

◆ setupScene()

void setupScene ( GraphicsUpdateArguments & args)
virtual

Reimplemented in GLESGraphicsSession, and VulkanSession.

◆ uuid()

virtual UUID uuid ( )
pure virtual

Implemented in GLESGraphicsSession, and VulkanSession.

Member Data Documentation

◆ m_added_cameras

Buffer<UUID> m_added_cameras
protected

◆ m_added_models

Dictionary<UUID, uint04> m_added_models
protected

◆ m_needs_clear_all

bool m_needs_clear_all = false
protected

◆ m_needs_command_refresh

bool m_needs_command_refresh = false
protected

◆ m_needs_model_refresh

bool m_needs_model_refresh = true
protected

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