43#ifndef VISRASTERIZER_H
44#define VISRASTERIZER_H
135 float x1=p1[0]-p0[0];
136 float y1=p1[1]-p0[1];
137 float x2=p2[0]-p0[0];
138 float y2=p2[1]-p0[1];
140 if (r<0.0f)
return true;
void Get_Resolution(int *get_w, int *get_h)
int Render_Non_Occluder_Scanline(GradientsStruct &grads, EdgeStruct *left, EdgeStruct *right)
void Set_Render_Mode(ModeType mode)
bool Is_Backfacing(const Vector3 &p0, const Vector3 &p1, const Vector3 &p2)
void Set_Frontface_ID(uint32 id)
void Reset_Pixel_Counter(void)
const uint32 * Get_Pixel_Row(int y, int min_x, int max_x)
ModeType Get_Render_Mode(void)
int Render_Occluder_Scanline(GradientsStruct &grads, EdgeStruct *left, EdgeStruct *right)
void Allocate_Buffers(void)
bool TwoSidedRenderingEnabled
uint32 Get_Frontface_ID(void)
bool Is_Two_Sided_Rendering_Enabled(void)
int Get_Pixel_Counter(void)
uint32 Get_Backface_ID(void)
int Pixel_Coords_To_Address(int x, int y)
void Enable_Two_Sided_Rendering(bool onoff)
void Set_Resolution(int w, int h)
bool Render_Triangle(const Vector3 &p0, const Vector3 &p1, const Vector3 &p2)
void Set_Backface_ID(uint32 id)
uint32 Get_Backface_ID(void)
void Set_Camera(CameraClass *camera)
bool Render_Triangles_No_Clip(const Vector3 *verts, int vcount, const TriIndex *tris, int tcount)
IDBufferClass::ModeType Get_Render_Mode(void)
CameraClass * Peek_Camera(void)
const Matrix3D & Get_Model_Transform(void)
void Enable_Two_Sided_Rendering(bool onoff)
int Get_Pixel_Counter(void)
bool Render_Triangles_Clip(const Vector3 *verts, int vcount, const TriIndex *tris, int tcount)
void Set_Render_Mode(IDBufferClass::ModeType mode)
void Set_Backface_ID(uint32 id)
void Get_Resolution(int *set_width, int *set_height)
void Set_Model_Transform(const Matrix3D &model)
void Reset_Pixel_Counter(void)
SimpleVecClass< Vector3 > TempVertexBuffer
const uint32 * Get_Pixel_Row(int y, int min_x, int max_x)
bool Is_Two_Sided_Rendering_Enabled(void)
const Matrix3D & Get_MV_Transform(void)
void Update_MV_Transform(void)
bool Render_Triangles(const Vector3 *verts, int vcount, const TriIndex *tris, int tcount, const AABoxClass &bounds)
Vector3 * Get_Temp_Vertex_Buffer(int count)
void Set_Frontface_ID(uint32 id)
~VisRasterizerClass(void)
CameraClass * Get_Camera(void)
void Set_Resolution(int width, int height)
uint32 Get_Frontface_ID(void)