Debian Codegraph @

src/CgUtil.h

raw symbols SCIP
1
2 class GeoSettingscxx . . $ GeoSettings# {
3 public:
4 typedef enumcxx . . $ GeoSettings#$anonymous_type_0#{ SPACE_FILLcxx . . $ GeoSettings#SPACE_FILL., BALL_N_STICKScxx . . $ GeoSettings#BALL_N_STICKS., LICORICEcxx . . $ GeoSettings#LICORICE. } GeoModecxx . . $ GeoSettings#GeoMode#;
5
6 GeoModecxx . . $ GeoSettings#GeoMode# modecxx . . $ GeoSettings#mode.;
7
8 float stickRadiuscxx . . $ GeoSettings#stickRadius.;
9 float licoRadiuscxx . . $ GeoSettings#licoRadius.;
10
11 bool stick_smooth_colorcxx . . $ GeoSettings#stick_smooth_color.;
12 bool use_stick_const_colorcxx . . $ GeoSettings#use_stick_const_color.;
13 float stick_const_color_Rcxx . . $ GeoSettings#stick_const_color_R.,stick_const_color_Gcxx . . $ GeoSettings#stick_const_color_G.,stick_const_color_Bcxx . . $ GeoSettings#stick_const_color_B.;
14
15 bool showHetatmcxx . . $ GeoSettings#showHetatm.;
16
17 void SetDefaultscxx . . $ GeoSettings#SetDefaults(49f6e7a06ebc5aa8).(){
18 modecxx . . $ GeoSettings#mode.=SPACE_FILLcxx . . $ GeoSettings#SPACE_FILL.;
19 //stickRadius=0.2;
20 SetLicoRadiusPercentagecxx . . $ GeoSettings#SetLicoRadiusPercentage(d4f767463ce0a6b3).(50);
21 SetStickRadiusPercentagecxx . . $ GeoSettings#SetStickRadiusPercentage(d4f767463ce0a6b3).(100);
22 //licoRadius=0.6;
23
24 stick_smooth_colorcxx . . $ GeoSettings#stick_smooth_color. = false;
25 use_stick_const_colorcxx . . $ GeoSettings#use_stick_const_color. = false;
26 stick_const_color_Rcxx . . $ GeoSettings#stick_const_color_R.=0.75;
27 stick_const_color_Gcxx . . $ GeoSettings#stick_const_color_G.=0.50;
28 stick_const_color_Bcxx . . $ GeoSettings#stick_const_color_B.=0.50;
29
30 showHetatmcxx . . $ GeoSettings#showHetatm. = false;
31
32 }
33
34 void Rotatecxx . . $ GeoSettings#Rotate(49f6e7a06ebc5aa8).(){
35 modecxx . . $ GeoSettings#mode.=(GeoModecxx . . $ GeoSettings#GeoMode#)((((int)modecxx . . $ GeoSettings#mode.)+1)%3);
36 }
37
38 GeoSettingscxx . . $ GeoSettings#GeoSettings(49f6e7a06ebc5aa8).() {
39 SetDefaultscxx . . $ GeoSettings#SetDefaults(49f6e7a06ebc5aa8).();
40 }
41
42 void Applycxx . . $ GeoSettings#Apply(49f6e7a06ebc5aa8).();
43 void ApplyColorcxx . . $ GeoSettings#ApplyColor(49f6e7a06ebc5aa8).();
44
45 void SetLicoRadiusPercentagecxx . . $ GeoSettings#SetLicoRadiusPercentage(d4f767463ce0a6b3).(int percentage){
46 licoRadiuscxx . . $ GeoSettings#licoRadius. = 0.3 + percentage/100.0*0.65;
47 }
48
49 int GetLicoRadiusPercentagecxx . . $ GeoSettings#GetLicoRadiusPercentage(b126dc7c1de90089).(){
50 return int(100.0*((licoRadiuscxx . . $ GeoSettings#licoRadius. - 0.3)/0.65));
51 }
52
53 void SetStickRadiusPercentagecxx . . $ GeoSettings#SetStickRadiusPercentage(d4f767463ce0a6b3).(int percentage){
54 const float tmp=0.32 * 0.85-0.16;
55 stickRadiuscxx . . $ GeoSettings#stickRadius. = 0.16 + percentage/100.0*tmp;
56 }
57
58 int GetStickRadiusPercentagecxx . . $ GeoSettings#GetStickRadiusPercentage(b126dc7c1de90089).(){
59 const float tmp=0.32 * 0.85-0.16;
60 return int(100.0*((stickRadiuscxx . . $ GeoSettings#stickRadius. - 0.16)/tmp));
61 }
62
63 };
64
65 // drawing settings
66 class CgUtilcxx . . $ CgUtil# {
67 public:
68
69
70 // RENDERING PARAMETERS:
71 // Settarli a piacere e poi chiamare setShaders...
72 /////////////////////////////////////////////
73
74 /* SERIALIZE_BEGIN */
75
76 float P_light_basecxx . . $ CgUtil#P_light_base.; // from 0 (dark) to 1 (bright)
77 float P_lightingcxx . . $ CgUtil#P_lighting.; // from 0 (no lighting) to 1 (full lighting)
78 float P_phongcxx . . $ CgUtil#P_phong.; // from 0 (no phong lighting) to 1 (full lighting)
79 float P_phong_sizecxx . . $ CgUtil#P_phong_size.; // from 0 (POW=100) to 1 (POW=1)
80
81 float P_col_atoms_satcxx . . $ CgUtil#P_col_atoms_sat.; // base color: saturation
82 float P_col_atoms_bricxx . . $ CgUtil#P_col_atoms_bri.; // base color: brightness
83
84 float P_texturecxx . . $ CgUtil#P_texture.; // FOR AO! from 0 (no AO) to 1 full AO
85 float P_border_insidecxx . . $ CgUtil#P_border_inside.; // size of antialiased borders inside, in % of atom
86 float P_border_outsidecxx . . $ CgUtil#P_border_outside.; // borders outside (pure black), full size
87 float P_depth_fullcxx . . $ CgUtil#P_depth_full.; // size of depth step for a full border
88
89 bool P_sem_effectcxx . . $ CgUtil#P_sem_effect.;
90
91 float P_halo_sizecxx . . $ CgUtil#P_halo_size.;
92 float P_halo_colcxx . . $ CgUtil#P_halo_col.;
93 float P_halo_strcxx . . $ CgUtil#P_halo_str.;
94 float P_halo_awarecxx . . $ CgUtil#P_halo_aware.;
95
96 float P_fogcxx . . $ CgUtil#P_fog.;
97
98 bool P_cappingcxx . . $ CgUtil#P_capping.; // capping
99 float P_shadowstrenghtcxx . . $ CgUtil#P_shadowstrenght.; // how much light
100
101 float P_bg_color_Rcxx . . $ CgUtil#P_bg_color_R.;
102 float P_bg_color_Gcxx . . $ CgUtil#P_bg_color_G.;
103 float P_bg_color_Bcxx . . $ CgUtil#P_bg_color_B.;
104
105 bool auto_normalizecxx . . $ CgUtil#auto_normalize.;
106
107 bool P_double_shadowscxx . . $ CgUtil#P_double_shadows.;
108
109 bool P_border_fixedcxx . . $ CgUtil#P_border_fixed.;
110
111 /* SERIALIZE_END */
112
113 bool do_use_doubleshadowcxx . . $ CgUtil#do_use_doubleshadow(c9857a73d68e59ba).();
114 bool can_use_doubleshadowcxx . . $ CgUtil#can_use_doubleshadow(c9857a73d68e59ba).();
115 bool P_use_shadowmapcxx . . $ CgUtil#P_use_shadowmap(c9857a73d68e59ba).() {return P_shadowstrenghtcxx . . $ CgUtil#P_shadowstrenght.>0; };
116
117 // Save and load the above
118 bool Loadcxx . . $ CgUtil#Load(c5f7da30cbc0f4e9).(const char* filename);
119 bool Savecxx . . $ CgUtil#Save(c5f7da30cbc0f4e9).(const char* filename);
120
121 // Set
122 void Setcxx . . $ CgUtil#Set(49f6e7a06ebc5aa8).();
123
124 // coming from GeoSettings
125 bool P_cyl_smooth_colorcxx . . $ CgUtil#P_cyl_smooth_color.;
126 bool P_cyl_const_colorcxx . . $ CgUtil#P_cyl_const_color.;
127 float P_cyl_const_color_Rcxx . . $ CgUtil#P_cyl_const_color_R.,P_cyl_const_color_Gcxx . . $ CgUtil#P_cyl_const_color_G.,P_cyl_const_color_Bcxx . . $ CgUtil#P_cyl_const_color_B.;
128
129 void setGeoSettingscxx . . $ CgUtil#setGeoSettings(31d11fe37d1238f2).(const GeoSettingscxx . . $ GeoSettings# &gs);
130
131 // Error messages
132 static char lasterrcxx . . $ CgUtil#lasterr.[255];
133
134 enumcxx . . $ CgUtil#$anonymous_type_1# { USE_OCTAcxx . . $ CgUtil#USE_OCTA., USE_CUBEcxx . . $ CgUtil#USE_CUBE. } textmodecxx . . $ CgUtil#textmode.; // textmode
135 enumcxx . . $ CgUtil#$anonymous_type_2# { PERSPECTIVEcxx . . $ CgUtil#PERSPECTIVE., ORTHOcxx . . $ CgUtil#ORTHO. } projmodecxx . . $ CgUtil#projmode.; // projmode
136 bool proj_figacxx . . $ CgUtil#proj_figa.;
137
138 void SetDefaultscxx . . $ CgUtil#SetDefaults(49f6e7a06ebc5aa8).(); // set defoult params
139 void SetForOffLinecxx . . $ CgUtil#SetForOffLine(49f6e7a06ebc5aa8).(); // set defoult params for an offscreen rendering
140 void SetForShadowMapcxx . . $ CgUtil#SetForShadowMap(b45ddcbc8423892c).(bool accurate);// set defoult params for an offscreen rendering
141 void MakeShaderscxx . . $ CgUtil#MakeShaders(49f6e7a06ebc5aa8).(); // activates params
142 void UpdateShaderscxx . . $ CgUtil#UpdateShaders(49f6e7a06ebc5aa8).() {shadersMadecxx . . $ CgUtil#shadersMade.=false;}; // activates params
143 void BindShaderscxx . . $ CgUtil#BindShaders(49f6e7a06ebc5aa8).(); // binds, loads if necessary
144
145 void MakeStickShaderscxx . . $ CgUtil#MakeStickShaders(49f6e7a06ebc5aa8).();
146 void BindStickShaderscxx . . $ CgUtil#BindStickShaders(49f6e7a06ebc5aa8).();
147
148 bool BindDrawAOShadercxx . . $ CgUtil#BindDrawAOShader(c9857a73d68e59ba).();
149 bool MakeDrawAOShadercxx . . $ CgUtil#MakeDrawAOShader(c9857a73d68e59ba).();
150
151 bool BindDrawAOShaderStickscxx . . $ CgUtil#BindDrawAOShaderSticks(c9857a73d68e59ba).();
152 bool MakeDrawAOShaderStickscxx . . $ CgUtil#MakeDrawAOShaderSticks(c9857a73d68e59ba).();
153
154 bool UseHalocxx . . $ CgUtil#UseHalo(c9857a73d68e59ba).();
155
156 bool BindHaloShadercxx . . $ CgUtil#BindHaloShader(83c267b20bac841a).(int powres); // 1^pow = size of halo texture
157 bool MakeHaloShadercxx . . $ CgUtil#MakeHaloShader(83c267b20bac841a).(int powres);
158
159 // questi sono settati automaticamente
160 /////////////////////////////////////
161 float gapcxx . . $ CgUtil#gap.; // gap, % of border texels to be skipped
162 int textureSideXcxx . . $ CgUtil#textureSideX.,textureSideYcxx . . $ CgUtil#textureSideY.;
163 bool writeAlphacxx . . $ CgUtil#writeAlpha.; // true during probe rendering only
164 bool writeColcxx . . $ CgUtil#writeCol.; // write a color at all?
165
166 static bool initcxx . . $ CgUtil#init(c9857a73d68e59ba).();
167 static void ShowShaderInfocxx . . $ CgUtil#ShowShaderInfo(d4f767463ce0a6b3).(int i);
168 static bool checkErrorcxx . . $ CgUtil#checkError(c9857a73d68e59ba).();
169 static bool checkProgramErrorcxx . . $ CgUtil#checkProgramError(c6b7e35ff6de5671).(char *st);
170 static bool shaderHasChangedcxx . . $ CgUtil#shaderHasChanged.;
171
172 float cyl_radiuscxx . . $ CgUtil#cyl_radius.;
173
174 bool doingAlphaSnapshotcxx . . $ CgUtil#doingAlphaSnapshot.; // lots of things change when doing an alpha snapshot
175
176 CgUtilcxx . . $ CgUtil#CgUtil(49f6e7a06ebc5aa8).();
177
178 void ResetHalocxx . . $ CgUtil#ResetHalo(49f6e7a06ebc5aa8).();
179
180 private:
181
182 enumcxx . . $ CgUtil#$anonymous_type_3# {MAXPOWcxx . . $ CgUtil#MAXPOW.=15};
183
184 bool shadersMadecxx . . $ CgUtil#shadersMade.;
185
186 float normcxx . . $ CgUtil#norm.;
187 void Normalizecxx . . $ CgUtil#Normalize(49f6e7a06ebc5aa8).();
188 void UndoNormalizecxx . . $ CgUtil#UndoNormalize(49f6e7a06ebc5aa8).();
189
190 bool setBallVertexProgramcxx . . $ CgUtil#setBallVertexProgram(c9857a73d68e59ba).();
191 bool setBallFragmentProgramcxx . . $ CgUtil#setBallFragmentProgram(c9857a73d68e59ba).();
192
193 bool setStickVertexProgramcxx . . $ CgUtil#setStickVertexProgram(c9857a73d68e59ba).();
194 bool setStickFragmentProgramcxx . . $ CgUtil#setStickFragmentProgram(c9857a73d68e59ba).();
195
196 /*static int loadVertexProgram(const char *str);
197 static int loadFragmentProgram(const char *str);*/
198
199 static char *readFilecxx . . $ CgUtil#readFile(a8b8e32347182212).(const char *file);
200
201 bool loadedcxx . . $ CgUtil#loaded., loadedStickcxx . . $ CgUtil#loadedStick., loadedVertexHalocxx . . $ CgUtil#loadedVertexHalo.;
202 GLuint idfcxx . . $ CgUtil#idf., idvcxx . . $ CgUtil#idv., idfStickcxx . . $ CgUtil#idfStick., idvStickcxx . . $ CgUtil#idvStick.;
203
204 bool loadedHalocxx . . $ CgUtil#loadedHalo.[MAXPOWcxx . . $ CgUtil#MAXPOW.];
205 GLuint idfHalocxx . . $ CgUtil#idfHalo.[MAXPOWcxx . . $ CgUtil#MAXPOW.];
206 GLuint idvHalocxx . . $ CgUtil#idvHalo.;
207
208 void LoadVertexHaloShadercxx . . $ CgUtil#LoadVertexHaloShader(49f6e7a06ebc5aa8).();
209
210 void addDirectLightingSnippetcxx . . $ CgUtil#addDirectLightingSnippet(fda57c8427c60377).(char* fp);
211 void addTexturingSnippetcxx . . $ CgUtil#addTexturingSnippet(fda57c8427c60377).(char* fp);
212 void addShadowMapComputationFPcxx . . $ CgUtil#addShadowMapComputationFP(fda57c8427c60377).(char* fp);
213 void addDepthAdjustSnippetcxx . . $ CgUtil#addDepthAdjustSnippet(fda57c8427c60377).(char* fp);
214
215 float _border_outsidecxx . . $ CgUtil#_border_outside(9b8c9e39889c762c).();
216 float _border_insidecxx . . $ CgUtil#_border_inside(9b8c9e39889c762c).();
217
218 bool shadowmapBuildingcxx . . $ CgUtil#shadowmapBuilding.;
219 bool accurateShadowmapBuildingcxx . . $ CgUtil#accurateShadowmapBuilding.;
220
221
222
223 };
224