Lugdunum  0.1.0
Classes | Public Member Functions | Protected Attributes | List of all members
lug::Graphics::Render::View Class Referenceabstract

#include <View.hpp>

Inheritance diagram for lug::Graphics::Render::View:
[legend]
Collaboration diagram for lug::Graphics::Render::View:
[legend]

Classes

struct  InitInfo
 
struct  Scissor
 
class  Viewport
 

Public Member Functions

 View (const Target *renderTarget)
 
 View (const View &)=delete
 
 View (View &&)=delete
 
Viewoperator= (const View &)=delete
 
Viewoperator= (View &&)=delete
 
virtual ~View ()=default
 
void init (InitInfo &initInfo)
 
InitInfogetInfo ()
 
const InitInfogetInfo () const
 
const ViewportgetViewport () const
 
const ScissorgetScissor () const
 
const Math::Vec3f & getClearColor () const
 
void setClearColor (const Math::Vec3f &color)
 
void attachCamera (Resource::SharedPtr< Camera::Camera > camera)
 
Resource::SharedPtr< Camera::CameragetCamera () const
 
void update ()
 
virtual void destroy ()=0
 
virtual bool endFrame ()=0
 

Protected Attributes

const Target_renderTarget
 
InitInfo _info
 
Viewport _viewport {}
 
Scissor _scissor {}
 
Math::Vec3f _clearColor {0.0f, 0.0f, 0.0f}
 
Resource::SharedPtr< Camera::Camera_camera {nullptr}
 

Detailed Description

Definition at line 18 of file View.hpp.

Constructor & Destructor Documentation

◆ View() [1/3]

lug::Graphics::Render::View::View ( const Target renderTarget)

Definition at line 8 of file View.cpp.

◆ View() [2/3]

lug::Graphics::Render::View::View ( const View )
delete

◆ View() [3/3]

lug::Graphics::Render::View::View ( View &&  )
delete

◆ ~View()

virtual lug::Graphics::Render::View::~View ( )
virtualdefault

Member Function Documentation

◆ operator=() [1/2]

View& lug::Graphics::Render::View::operator= ( const View )
delete

◆ operator=() [2/2]

View& lug::Graphics::Render::View::operator= ( View &&  )
delete

◆ init()

void lug::Graphics::Render::View::init ( View::InitInfo initInfo)

Definition at line 43 of file View.cpp.

◆ getInfo() [1/2]

View::InitInfo & View::getInfo ( )
inline

Definition at line 1 of file View.inl.

◆ getInfo() [2/2]

const View::InitInfo & View::getInfo ( ) const
inline

Definition at line 5 of file View.inl.

◆ getViewport()

const View::Viewport & View::getViewport ( ) const
inline

Definition at line 9 of file View.inl.

◆ getScissor()

const View::Scissor & View::getScissor ( ) const
inline

Definition at line 13 of file View.inl.

◆ getClearColor()

const Math::Vec3f & View::getClearColor ( ) const
inline

Definition at line 17 of file View.inl.

◆ setClearColor()

void View::setClearColor ( const Math::Vec3f &  color)
inline

Definition at line 21 of file View.inl.

◆ attachCamera()

void View::attachCamera ( Resource::SharedPtr< Camera::Camera camera)
inline

Definition at line 25 of file View.inl.

◆ getCamera()

Resource::SharedPtr< Camera::Camera > View::getCamera ( ) const
inline

Definition at line 39 of file View.inl.

◆ update()

void lug::Graphics::Render::View::update ( )

Definition at line 10 of file View.cpp.

◆ destroy()

virtual void lug::Graphics::Render::View::destroy ( )
pure virtual

◆ endFrame()

virtual bool lug::Graphics::Render::View::endFrame ( )
pure virtual

Member Data Documentation

◆ _renderTarget

const Target* lug::Graphics::Render::View::_renderTarget
protected

Definition at line 90 of file View.hpp.

◆ _info

InitInfo lug::Graphics::Render::View::_info
protected

Definition at line 91 of file View.hpp.

◆ _viewport

Viewport lug::Graphics::Render::View::_viewport {}
protected

Definition at line 93 of file View.hpp.

◆ _scissor

Scissor lug::Graphics::Render::View::_scissor {}
protected

Definition at line 94 of file View.hpp.

◆ _clearColor

Math::Vec3f lug::Graphics::Render::View::_clearColor {0.0f, 0.0f, 0.0f}
protected

Definition at line 95 of file View.hpp.

◆ _camera

Resource::SharedPtr<Camera::Camera> lug::Graphics::Render::View::_camera {nullptr}
protected

Definition at line 96 of file View.hpp.


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