CSEngine
Loading...
Searching...
No Matches
CSE::CoreBufferContainer Class Reference
Inheritance diagram for CSE::CoreBufferContainer:
CSE::RenderMgr

Public Member Functions

SFrameBufferGetMainBuffer () const
 

Protected Member Functions

void InitBuffers (int width, int height)
 
void ResizeBuffers (int width, int height)
 

Detailed Description

Definition at line 7 of file CoreBufferContainer.h.

Member Function Documentation

◆ GetMainBuffer()

SFrameBuffer * CSE::CoreBufferContainer::GetMainBuffer ( ) const
inline

Definition at line 12 of file CoreBufferContainer.h.

12 {
13 return m_mainBuffer;
14 }

◆ InitBuffers()

void CoreBufferContainer::InitBuffers ( int  width,
int  height 
)
protected

Definition at line 7 of file CoreBufferContainer.cpp.

7 {
8 if (m_mainBuffer != nullptr)
9 ResizeBuffers(width, height);
10
11 m_mainBuffer = new SFrameBuffer();
12 m_mainBuffer->GenerateFramebuffer(SFrameBuffer::PLANE, width, height);
13 m_mainBuffer->GenerateTexturebuffer(SFrameBuffer::RENDER, GL_RGB);
14 m_mainBuffer->RasterizeFramebuffer();
15}
STexture * GenerateTexturebuffer(BufferType type, int channel, int level=0)
void GenerateFramebuffer(BufferDimension dimension, int width, int height)

◆ ResizeBuffers()

void CoreBufferContainer::ResizeBuffers ( int  width,
int  height 
)
protected

Definition at line 17 of file CoreBufferContainer.cpp.

17 {
18 m_mainBuffer->ResizeFrameBuffer(width, height);
19}

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