finished tutorial 7
This commit is contained in:
@@ -22,7 +22,7 @@ class MeshMaterial {
|
||||
explicit MeshMaterial(const MeshMaterial& material);
|
||||
~MeshMaterial();
|
||||
|
||||
u8 isMother, lightmapFlag;
|
||||
bool isMother, lightmapFlag;
|
||||
|
||||
u32 id;
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ class DynamicPipeline : public Renderer3DPipeline {
|
||||
*/
|
||||
void render(const DynamicMesh* mesh);
|
||||
void render(const DynamicMesh* mesh, const DynPipOptions& options);
|
||||
void render(const DynamicMesh* mesh, const DynPipOptions* options = nullptr);
|
||||
void render(const DynamicMesh* mesh, const DynPipOptions* options);
|
||||
|
||||
private:
|
||||
RendererCore* rendererCore;
|
||||
|
||||
@@ -48,7 +48,7 @@ class StaticPipeline : public Renderer3DPipeline {
|
||||
*/
|
||||
void render(const StaticMesh* mesh);
|
||||
void render(const StaticMesh* mesh, const StaPipOptions& options);
|
||||
void render(const StaticMesh* mesh, const StaPipOptions* options = nullptr);
|
||||
void render(const StaticMesh* mesh, const StaPipOptions* options);
|
||||
|
||||
private:
|
||||
StapipBagBBoxesCacher cacher;
|
||||
|
||||
@@ -53,6 +53,10 @@ class Color {
|
||||
void operator-=(const float& v);
|
||||
void operator*=(const float& v);
|
||||
void operator/=(const float& v);
|
||||
Color operator+(const float& v) const;
|
||||
Color operator-(const float& v) const;
|
||||
Color operator*(const float& v) const;
|
||||
Color operator/(const float& v) const;
|
||||
|
||||
inline void set(const Color& v) { copy(this, v.rgba); }
|
||||
inline void set(const float* v) { copy(this, v); }
|
||||
|
||||
Reference in New Issue
Block a user