2022-04-10 00:17:06 +00:00
|
|
|
#ifndef _CGRAPHICS_HPP
|
|
|
|
#define _CGRAPHICS_HPP
|
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
2022-08-13 01:26:00 +00:00
|
|
|
#include "Kyoto/Graphics/CColor.hpp"
|
2022-07-18 22:42:58 +00:00
|
|
|
#include "Kyoto/Math/CVector3f.hpp"
|
|
|
|
|
2022-08-09 23:03:51 +00:00
|
|
|
#include "Kyoto/Graphics/CTevCombiners.hpp"
|
2022-07-02 05:30:04 +00:00
|
|
|
|
|
|
|
enum ERglTevStage {
|
|
|
|
kTS_Stage0,
|
|
|
|
kTS_Stage1,
|
|
|
|
kTS_Stage2,
|
|
|
|
kTS_Stage3,
|
|
|
|
kTS_Stage4,
|
|
|
|
kTS_Stage5,
|
|
|
|
kTS_Stage6,
|
|
|
|
kTS_Stage7,
|
|
|
|
kTS_Stage8,
|
|
|
|
kTS_Stage9,
|
|
|
|
kTS_Stage10,
|
|
|
|
kTS_Stage11,
|
|
|
|
kTS_Stage12,
|
|
|
|
kTS_Stage13,
|
|
|
|
kTS_Stage14,
|
|
|
|
kTS_Stage15,
|
|
|
|
kTS_MaxStage,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum ERglPrimitive {
|
|
|
|
kP_Quads = 0x80,
|
|
|
|
kP_Triangles = 0x90,
|
|
|
|
kP_TriangleStrip = 0x98,
|
|
|
|
kP_TriangleFan = 0xA0,
|
|
|
|
kP_Lines = 0xA8,
|
|
|
|
kP_LineStrip = 0xB0,
|
|
|
|
kP_Points = 0xB8,
|
|
|
|
};
|
|
|
|
|
2022-04-10 00:17:06 +00:00
|
|
|
class CGraphics {
|
|
|
|
public:
|
|
|
|
static void SetIsBeginSceneClearFb(bool);
|
|
|
|
static void BeginScene();
|
|
|
|
static void EndScene();
|
2022-07-02 05:30:04 +00:00
|
|
|
static void SetTevOp(ERglTevStage stage, const CTevCombiners::CTevPass& pass);
|
|
|
|
static void StreamBegin(ERglPrimitive primitive);
|
|
|
|
static void StreamColor(const CColor& color);
|
|
|
|
static void StreamTexcoord(f32 u, f32 v);
|
|
|
|
static void StreamVertex(const CVector3f& vtx);
|
|
|
|
static void StreamEnd();
|
2022-04-10 00:17:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|