Renderer changes; render buckets now use new abstract class IRenderable instead of CSceneNode to allow rendering non-nodes, plus renderer modified to easily allow multiple rendering passes overlaid on each other

This commit is contained in:
parax0
2015-08-15 00:04:56 -04:00
parent 4d7774f19e
commit 928381f8e4
16 changed files with 166 additions and 98 deletions

View File

@@ -71,9 +71,9 @@ void CDynamicVertexBuffer::ClearBuffers()
{
for (u32 iAttrib = 0; iAttrib < 12; iAttrib++)
{
u8 Bit = 1 << iAttrib;
int bit = 1 << iAttrib;
if (mBufferedFlags & Bit)
if (mBufferedFlags & bit)
glDeleteBuffers(1, &mAttribBuffers[iAttrib]);
}

View File

@@ -1,18 +0,0 @@
#ifndef SMESHPOINTER_H
#define SMESHPOINTER_H
#include <Common/CAABox.h>
#include <Common/types.h>
#include <Core/ERenderCommand.h>
#include <Scene/CSceneNode.h>
#include <Resource/CMaterial.h>
struct SMeshPointer
{
CSceneNode *pNode;
u32 Asset;
CAABox AABox;
ERenderCommand Command;
};
#endif // SMESHPOINTER_H