Skip to content

Commit

Permalink
code cleanup (20211012)
Browse files Browse the repository at this point in the history
  • Loading branch information
ounols committed Oct 12, 2021
1 parent 9049ec6 commit 3ee7319
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/Manager/LightMgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ namespace CSE {
/*mutable*/ int m_lightMapCount = 3;

SEnvironmentMgr* m_environmentMgr = nullptr;

};

}
3 changes: 0 additions & 3 deletions src/Util/Render/SFrameBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ void SFrameBuffer::RasterizeFramebuffer() {
GenerateRenderbuffer(SFrameBuffer::DEPTH, m_width, m_height, GL_DEPTH_COMPONENT);
m_bufferStatus = MULTI;
}

}

void SFrameBuffer::AttachCubeBuffer(int index, int level) const {
Expand All @@ -124,7 +123,6 @@ void SFrameBuffer::DetachFrameBuffer() const {
}

void SFrameBuffer::ResizeFrameBuffer(int width, int height) {

std::vector<BufferObject*> origBufferVector(m_buffers);

m_buffers.clear();
Expand All @@ -134,7 +132,6 @@ void SFrameBuffer::ResizeFrameBuffer(int width, int height) {
GenerateFramebuffer(m_dimension);

for (const auto& buffer : origBufferVector) {

auto type = buffer->type;
auto format = buffer->format;
auto level = buffer->level;
Expand Down
4 changes: 0 additions & 4 deletions src/Util/Render/SGBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ SGBuffer::SGBuffer() {
}

SGBuffer::~SGBuffer() {

}

void SGBuffer::GenerateGBuffer(int width, int height) {
Expand Down Expand Up @@ -57,7 +56,6 @@ void SGBuffer::ResizeGBuffer(int width, int height) {
}

void SGBuffer::ReleaseGBuffer() {

if(m_geometryFrameBuffer != nullptr) {
resMgr->Remove(m_geometryFrameBuffer);
SAFE_DELETE(m_geometryFrameBuffer);
Expand All @@ -83,8 +81,6 @@ void SGBuffer::AttachLightPassTexture(int textureLayout) const {
m_normalTexture->Bind(m_normalTextureId, textureLayout + 1);
m_albedoTexture->Bind(m_albedoTextureId, textureLayout + 2);
m_materialTexture->Bind(m_materialTextureId, textureLayout + 3);


}

void SGBuffer::RenderLightPass() const {
Expand Down
2 changes: 0 additions & 2 deletions src/Util/Settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ const char* Settings::m_defaultDeferredProxyMaterialID = "File:Material/DefaultP
const char* Settings::m_defaultMainBufferShaderID = "File:Shader/Main-Buffer.shader";

Settings::Settings() {

}

Settings::~Settings() {

}

const char* Settings::GetDeferredGeometryPassShaderID() {
Expand Down

0 comments on commit 3ee7319

Please sign in to comment.