Week7 [09/11] - [11/11]
Added Backface Culling Methods to the Model Class Added Depth, Normal and Culled Flag Variables to the Polygon3D Class Added Vector3D Class Added - operator to the Vertex Class Cleaned up Code, Adding Void to Params etc
This commit is contained in:
7
Vertex.h
7
Vertex.h
@ -1,10 +1,12 @@
|
||||
#pragma once
|
||||
#include "Vector3D.h"
|
||||
|
||||
class Vertex
|
||||
{
|
||||
public:
|
||||
Vertex();
|
||||
Vertex(const float x, const float y, const float z);
|
||||
Vertex(const float x, const float y, const float z, const float w);
|
||||
Vertex(float x, float y, float z);
|
||||
Vertex(float x, float y, float z, float w);
|
||||
Vertex(const Vertex& other);
|
||||
|
||||
// Accessors
|
||||
@ -25,6 +27,7 @@ public:
|
||||
bool operator== (const Vertex& rhs) const;
|
||||
|
||||
const Vertex operator+ (const Vertex& rhs) const;
|
||||
const Vector3D operator- (const Vertex& rhs) const;
|
||||
|
||||
private:
|
||||
float _x;
|
||||
|
Reference in New Issue
Block a user