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

A GraphicsPipeline that is responsible for setting up and rendering the resources of a DesignObjectLookup. More...

#include <GraphicsSession.h>

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

Public Member Functions

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

Protected Attributes

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

Detailed Description

A GraphicsPipeline that is responsible for setting up and rendering the resources of a DesignObjectLookup.


Constructor & Destructor Documentation

◆ ~GraphicsSession()

virtual ~GraphicsSession ( )
inlinevirtual

Member Function Documentation

◆ addCamera()

virtual void addCamera ( const UUID & object)
virtual

◆ addGeometry()

virtual void addGeometry ( const UUID & geo)
virtual

◆ addMaterial()

virtual void addMaterial ( const UUID & material)
virtual

◆ addModel()

virtual 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]

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

◆ addScene()

virtual void addScene ( const UUID & scene)
virtual

◆ createRenderPipeline()

virtual DynamicPointer< GraphicsPipeline > createRenderPipeline ( )
pure virtual

Implemented in GLESGraphicsSession, and VulkanSession.

◆ postClearAll()

virtual void postClearAll ( )
virtual

Reimplemented in GLESGraphicsSession, and VulkanSession.

◆ readShader()

virtual void readShader ( const String & shader)
pure virtual

Implemented in GLESGraphicsSession, and QtVulkanSession.

◆ removeCamera()

virtual void removeCamera ( const UUID & camera)
virtual

◆ removeGeometry()

virtual void removeGeometry ( const UUID & geo)
virtual

Reimplemented in GLESGraphicsSession, and VulkanSession.

◆ removeMaterial()

virtual void removeMaterial ( const UUID & material)
virtual

Reimplemented in GLESGraphicsSession, and VulkanSession.

◆ removeModel()

virtual void removeModel ( const UUID & model)
virtual

Reimplemented in GLESGraphicsSession.

◆ setupScene()

virtual 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 file: