GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
MaterialI.hh
Go to the documentation of this file.
1#ifndef MATERIALI_HH
2#define MATERIALI_HH
3
4#include "GameApi.hh"
5#include "GraphI.hh"
6
7class MaterialForward : public Material
8{
9public:
11 {
12 GameApi::ML ml;
13 ml.id = mat(p.id);
14 return ml;
15 }
17 {
18 GameApi::ML ml;
19 ml.id = mat_inst(p.id,pts.id);
20 return ml;
21 }
23 {
24 GameApi::ML ml;
25 ml.id = mat_inst_matrix(p.id,ms.id);
26 return ml;
27 }
28 int mat(int p) const
29 {
30 GameApi::P p2;
31 p2.id = p;
32 GameApi::ML ml = mat2(p2);
33 return ml.id;
34 }
35 int mat_inst(int p, int pts) const
36 {
37 GameApi::P p2;
38 p2.id = p;
39 GameApi::PTS p3;
40 p3.id = pts;
41 GameApi::ML ml = mat2_inst(p2,p3);
42 return ml.id;
43 }
44 int mat_inst_va_prepare(int p) const
45 {
46 GameApi::P p2;
47 p2.id = p;
49 return va.id;
50 }
51 int mat_inst_va(int va, int pts) const
52 {
53 GameApi::VA p2;
54 p2.id = va;
55 GameApi::PTS p3;
56 p3.id = pts;
57 GameApi::ML ml = mat2_inst_va(p2,p3);
58 return ml.id;
59 }
60 int mat_inst_matrix(int p, int ms) const
61 {
62 GameApi::P p2;
63 p2.id = p;
64 GameApi::MS p3;
65 p3.id = ms;
66 GameApi::ML ml = mat2_inst_matrix(p2,p3);
67 return ml.id;
68 }
69
70 int mat_inst2(int p, int pta) const
71 {
72 GameApi::P p2;
73 p2.id = p;
74 GameApi::PTA p3;
75 p3.id = pta;
76 GameApi::ML ml = mat2_inst2(p2,p3);
77 return ml.id;
78
79 }
80 int mat_inst_fade(int p, int pts, bool flip, float start_time, float end_time) const
81 {
82 GameApi::P p2;
83 p2.id = p;
84 GameApi::PTS p3;
85 p3.id = pts;
86 GameApi::ML ml = mat_inst_fade(p2,p3, flip, start_time, end_time);
87 return ml.id;
88
89 }
90 virtual GameApi::ML mat2(GameApi::P p) const=0;
96 virtual GameApi::ML mat_inst_fade(GameApi::P p, GameApi::PTS pts, bool flip, float start_time, float end_time) const=0;
97};
98
99#endif
Definition cpushader.cc:936
int mat_inst_matrix(int p, int ms) const
Definition cpushader.cc:991
GameApi::ML call_inst_matrix(GameApi::P p, GameApi::MS ms)
Definition MaterialI.hh:22
GameApi::ML call(GameApi::P p) const
Definition MaterialI.hh:10
virtual GameApi::ML mat2_inst2(GameApi::P p, GameApi::PTA pta) const =0
int mat_inst_va(int va, int pts) const
Definition MaterialI.hh:51
GameApi::ML call_inst(GameApi::P p, GameApi::PTS pts)
Definition MaterialI.hh:16
int mat_inst(int p, int pts) const
Definition cpushader.cc:964
virtual GameApi::ML mat2_inst(GameApi::P p, GameApi::PTS pts) const =0
virtual GameApi::VA mat2_inst_va_prepare(GameApi::P p) const =0
virtual GameApi::ML mat_inst_fade(GameApi::P p, GameApi::PTS pts, bool flip, float start_time, float end_time) const =0
int mat_inst_fade(int p, int pts, bool flip, float start_time, float end_time) const
Definition MaterialI.hh:80
virtual GameApi::ML mat2(GameApi::P p) const =0
int mat_inst_va_prepare(int p) const
Definition MaterialI.hh:44
int mat_inst2(int p, int pta) const
Definition MaterialI.hh:70
int mat(int p) const
Definition cpushader.cc:957
virtual GameApi::ML mat2_inst_matrix(GameApi::P p, GameApi::MS ms) const =0
virtual GameApi::ML mat2_inst_va(GameApi::VA va, GameApi::PTS pts) const =0
Definition GraphI.hh:1959
Definition Common.hh:156
int id
Definition Common.hh:156
Definition Common.hh:60
int id
Definition Common.hh:60
Definition Common.hh:145
int id
Definition Common.hh:145
Definition Common.hh:144
int id
Definition Common.hh:144
Definition Common.hh:86
int id
Definition Common.hh:86
Definition Common.hh:124
int id
Definition Common.hh:124