mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 03:07:43 +00:00
New code style refactor
This commit is contained in:
@@ -6,26 +6,26 @@
|
||||
#include "zeus/CRectangle.hpp"
|
||||
#include "zeus/CVector4f.hpp"
|
||||
|
||||
namespace urde
|
||||
{
|
||||
namespace urde {
|
||||
|
||||
class CFogVolumePlaneShader
|
||||
{
|
||||
boo::ObjToken<boo::IGraphicsBufferD> m_vbo;
|
||||
boo::ObjToken<boo::IShaderDataBinding> m_dataBinds[4];
|
||||
std::vector<zeus::CVector4f> m_verts;
|
||||
size_t m_vertCapacity = 0;
|
||||
class CFogVolumePlaneShader {
|
||||
boo::ObjToken<boo::IGraphicsBufferD> m_vbo;
|
||||
boo::ObjToken<boo::IShaderDataBinding> m_dataBinds[4];
|
||||
std::vector<zeus::CVector4f> m_verts;
|
||||
size_t m_vertCapacity = 0;
|
||||
|
||||
void CommitResources(size_t capacity);
|
||||
void CommitResources(size_t capacity);
|
||||
|
||||
public:
|
||||
static void Initialize();
|
||||
static void Shutdown();
|
||||
static const zeus::CRectangle DefaultRect;
|
||||
void reset(int numVerts) { m_verts.clear(); m_verts.reserve(numVerts); }
|
||||
void addFan(const zeus::CVector3f* verts, int numVerts);
|
||||
void draw(int pass);
|
||||
static void Initialize();
|
||||
static void Shutdown();
|
||||
static const zeus::CRectangle DefaultRect;
|
||||
void reset(int numVerts) {
|
||||
m_verts.clear();
|
||||
m_verts.reserve(numVerts);
|
||||
}
|
||||
void addFan(const zeus::CVector3f* verts, int numVerts);
|
||||
void draw(int pass);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
} // namespace urde
|
||||
|
||||
Reference in New Issue
Block a user