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:
IDunnoDev
2021-12-14 13:50:09 +00:00
committed by iDunnoDev
parent cdb940f6aa
commit eeea920e45
4 changed files with 161 additions and 56 deletions

View File

@ -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);
};