Week12 [14/12]
Added UVCheck texture file Added UV perspective Variables to the Vertex Class Added Texture Draw method to the Rasteriser
This commit is contained in:
12
Vertex.h
12
Vertex.h
@ -44,6 +44,14 @@ public:
|
||||
int GetUVIndex() const;
|
||||
void SetUVIndex(const int index);
|
||||
|
||||
float GetZOriginal() const;
|
||||
float GetUOverZ() const;
|
||||
void SetUOverZ(const float value);
|
||||
float GetVOverZ() const;
|
||||
void SetVOverZ(const float value);
|
||||
float GetZRecip() const;
|
||||
void UVCorrect(float u, float v);
|
||||
|
||||
// Accessors for returning the private x, y, z and w values as integeres instead of floats
|
||||
// the ceil function to round the number up by defaults but using providing a false param will
|
||||
// use the floor function instead to round the number down
|
||||
@ -79,6 +87,10 @@ private:
|
||||
|
||||
int _uvIndex;
|
||||
|
||||
float _uOverZ;
|
||||
float _vOverZ;
|
||||
float _zRecip;
|
||||
|
||||
void Copy(const Vertex& other);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user