![]() |
Pioneer
|
#include <Renderer.h>


Classes | |
| class | MatrixTicket |
| class | StateTicket |
Public Types | |
| using | TextureCache = TextureCacheMap |
Public Member Functions | |
| Renderer (SDL_Window *win, int width, int height) | |
| virtual | ~Renderer () |
| virtual const char * | GetName () const =0 |
| virtual RendererType | GetRendererType () const =0 |
| virtual void | WriteRendererInfo (std::ostream &out) const |
| virtual void | CheckRenderErrors (const char *func=nullptr, const int line=-1) const |
| virtual bool | SupportsInstancing ()=0 |
| SDL_Window * | GetSDLWindow () const |
| float | GetDisplayAspect () const |
| int | GetWindowWidth () const |
| int | GetWindowHeight () const |
| virtual int | GetMaximumNumberAASamples () const =0 |
| virtual bool | GetNearFarRange (float &near_, float &far_) const =0 |
| virtual bool | BeginFrame ()=0 |
| virtual bool | EndFrame ()=0 |
| virtual bool | SwapBuffers ()=0 |
| virtual bool | SetRenderTarget (RenderTarget *)=0 |
| virtual bool | ClearScreen ()=0 |
| virtual bool | ClearDepthBuffer ()=0 |
| virtual bool | SetClearColor (const Color &c)=0 |
| virtual bool | SetViewport (Viewport vp)=0 |
| virtual Viewport | GetViewport () const =0 |
| virtual bool | SetTransform (const matrix4x4f &m)=0 |
| virtual matrix4x4f | GetTransform () const =0 |
| virtual bool | SetPerspectiveProjection (float fov, float aspect, float near_, float far_)=0 |
| virtual bool | SetOrthographicProjection (float xmin, float xmax, float ymin, float ymax, float zmin, float zmax)=0 |
| virtual bool | SetProjection (const matrix4x4f &m)=0 |
| virtual matrix4x4f | GetProjection () const =0 |
| virtual bool | SetRenderState (RenderState *)=0 |
| virtual bool | SetDepthRange (double znear, double zfar)=0 |
| virtual bool | ResetDepthRange ()=0 |
| virtual bool | SetWireFrameMode (bool enabled)=0 |
| virtual bool | SetLights (Uint32 numlights, const Light *l)=0 |
| const Light & | GetLight (const Uint32 idx) const |
| virtual Uint32 | GetNumLights () const |
| virtual bool | SetAmbientColor (const Color &c)=0 |
| const Color & | GetAmbientColor () const |
| virtual bool | SetScissor (bool enabled, const vector2f &pos=vector2f(0.0f), const vector2f &size=vector2f(0.0f))=0 |
| virtual bool | DrawTriangles (const VertexArray *vertices, RenderState *state, Material *material, PrimitiveType type=TRIANGLES)=0 |
| virtual bool | DrawPointSprites (const Uint32 count, const vector3f *positions, RenderState *rs, Material *material, float size)=0 |
| virtual bool | DrawPointSprites (const Uint32 count, const vector3f *positions, const vector2f *offsets, const float *sizes, RenderState *rs, Material *material)=0 |
| virtual bool | DrawBuffer (VertexBuffer *, RenderState *, Material *, PrimitiveType type=TRIANGLES)=0 |
| virtual bool | DrawBufferIndexed (VertexBuffer *, IndexBuffer *, RenderState *, Material *, PrimitiveType=TRIANGLES)=0 |
| virtual bool | DrawBufferInstanced (VertexBuffer *, RenderState *, Material *, InstanceBuffer *, PrimitiveType type=TRIANGLES)=0 |
| virtual bool | DrawBufferIndexedInstanced (VertexBuffer *, IndexBuffer *, RenderState *, Material *, InstanceBuffer *, PrimitiveType=TRIANGLES)=0 |
| virtual Material * | CreateMaterial (const MaterialDescriptor &descriptor)=0 |
| virtual Texture * | CreateTexture (const TextureDescriptor &descriptor)=0 |
| virtual RenderState * | CreateRenderState (const RenderStateDesc &)=0 |
| virtual RenderTarget * | CreateRenderTarget (const RenderTargetDesc &)=0 |
| virtual VertexBuffer * | CreateVertexBuffer (const VertexBufferDesc &)=0 |
| virtual IndexBuffer * | CreateIndexBuffer (Uint32 size, BufferUsage)=0 |
| virtual InstanceBuffer * | CreateInstanceBuffer (Uint32 size, BufferUsage)=0 |
| Texture * | GetCachedTexture (const std::string &type, const std::string &name) |
| void | AddCachedTexture (const std::string &type, const std::string &name, Texture *texture) |
| void | RemoveCachedTexture (const std::string &type, const std::string &name) |
| void | RemoveAllCachedTextures () |
| const TextureCache & | GetTextureCache () |
| virtual bool | ReloadShaders ()=0 |
| virtual bool | Screendump (ScreendumpState &sd) |
| virtual bool | FrameGrab (ScreendumpState &sd) |
| Stats & | GetStats () |
Protected Member Functions | |
| virtual void | PushState ()=0 |
| virtual void | PopState ()=0 |
Protected Attributes | |
| int | m_width |
| int | m_height |
| Color | m_ambient |
| Light | m_lights [4] |
| Stats | m_stats |
| SDL_Window * | m_window |
| using Graphics::Renderer::TextureCache = TextureCacheMap |
| Graphics::Renderer::Renderer | ( | SDL_Window * | win, |
| int | width, | ||
| int | height | ||
| ) |
|
virtual |

| void Graphics::Renderer::AddCachedTexture | ( | const std::string & | type, |
| const std::string & | name, | ||
| Texture * | texture | ||
| ) |

|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
inlinevirtual |
Reimplemented in Graphics::RendererOGL.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererDummy, and Graphics::RendererOGL.
|
pure virtual |
Implemented in Graphics::RendererDummy, and Graphics::RendererOGL.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererDummy, and Graphics::RendererOGL.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
inlinevirtual |
Reimplemented in Graphics::RendererOGL.
|
inline |
| Texture * Graphics::Renderer::GetCachedTexture | ( | const std::string & | type, |
| const std::string & | name | ||
| ) |
|
inline |
|
inline |
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
inlinevirtual |
Reimplemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
inline |
|
inline |
|
inline |
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
inline |
|
inline |
|
protectedpure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
protectedpure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
| void Graphics::Renderer::RemoveAllCachedTextures | ( | ) |
| void Graphics::Renderer::RemoveCachedTexture | ( | const std::string & | type, |
| const std::string & | name | ||
| ) |
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
inlinevirtual |
Reimplemented in Graphics::RendererOGL.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
pure virtual |
Implemented in Graphics::RendererOGL, and Graphics::RendererDummy.
|
inlinevirtual |
Reimplemented in Graphics::RendererOGL.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |