GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
Common2.hh
Go to the documentation of this file.
1#include <memory>
2#include "../GameApi_low.hh"
3#include "../Shader.hh"
4
5
7{
9 int id;
11 //FaceCollection **collarray;
13 bool collowned;
14 bool collarrayowned;
15 //int size;
16 bool padding1;
17 bool padding2;
19
20};
21
22struct BitmapHandle
23{
24 int id;
25 virtual ~BitmapHandle() { }
26};
27
28
29struct BitmapColorHandle : public BitmapHandle
30{
31 Bitmap<Color> *bm;
32 ~BitmapColorHandle() { delete bm; }
33};
34struct BitmapIntHandle : public BitmapHandle
35{
36 Bitmap<int> *bm;
37 ~BitmapIntHandle() { delete bm; }
38};
39struct BitmapArrayHandle : public BitmapHandle
40{
41 std::vector<BitmapHandle*> vec;
42 std::vector<int> owned;
44 {
45 // NOT deleted here, because bitmaparray() uses find_bitmap() to find the
46 // handles, and thus we don't have ownership of them.
47 if (vec.size() != owned.size())
48 {
49 std::cout << "BitmapArrayHandle destructor: vector sizes do not match" << std::endl;
50 }
51 int s = vec.size();
52 for(int i=0;i<s;i++)
53 if (owned[i]==1)
54 delete vec[i];
55 }
56};
57struct BitmapPosHandle : public BitmapHandle
58{
59 Bitmap<Pos> *bm;
60 ~BitmapPosHandle() { delete bm; }
61};
62struct BitmapTileHandle : public BitmapHandle
63{
64 Bitmap<Color> *bm;
65 int tile_sx, tile_sy;
66 ~BitmapTileHandle() { delete bm; }
67};
68
69
70
71class BooleanOps
72{
73public:
74 virtual ~BooleanOps() { }
75 virtual bool Inside(Point p) const { return false; }
76};
78{
79};
80
81
83{
84public:
85 void Prepare() { }
86};
88{
89public:
90 void Prepare() { }
91};
92class MousePlane;
93template<class T, class K> class Array;
95{
96 Array<int, bool> *enable_obj_array; // dimension = numpositions, int=LL.id
98};
100{
103};
104
105struct BoolBitmap
106{
108};
109struct FloatBitmap
110{
111 Bitmap<float> *bitmap;
112};
113
114struct SpaceImpl
115{
116 Point tl, tr, bl, br, z;
117 Point origo;
118 Point2d conv(Point p) { Point2d pp; pp.x = p.x; pp.y = p.y; return pp; }
119};
120
121struct LineImpl
122{
123 Point2d p1,p2;
124 float duration;
125};
126struct SpritePosImpl
127{
128 float x,y;
129};
130struct TexCoordQuad
131{
132 Point2d p1;
133 Point2d p2;
134};
135
136struct FBOPriv
137{
141 int sx,sy;
142};
143
144class AnimInt;
145class AnimPoint3d;
146class AnimFloat;
147class VolumeObject;
149class BitmapHandle;
151class VertexArraySet;
153class TROArray;
154class VArray;
155class ShaderPriv2;
156class TextureI;
157class Separate;
158class PlanePoints2d;
159class Waveform;
160class ArrayRender;
161class Layout;
162class PointArray2;
163class PointArray3;
164class PointCollection;
168template<class T> class LazyValue;
169class FontAtlasInfo;
170class Sequencer2;
171class SurfaceIn3d;
172class MousePlane;
174class IDInterface
175{
176public:
177 virtual int Size() const=0;
178 virtual int Poly_id(int count) const=0;
179 virtual int facenum(int count) const=0;
180 virtual int pointnum(int count) const=0;
181 virtual int type(int count) const=0; // 0=point, 1=normal, 2=color, 3=texcoord
182};
183
184
185struct IDImpl
186{
187 int id_num;
189 //int poly_id;
190 //int facenum;
191 //int pointnum;
192 //int type;
193};
194
195struct Font
196{
198};
199
200struct ObjectWithPos
201{
202 GameApi::P obj;
204};
206{
207 GameApi::VA va;
208 GameApi::M m;
209};
210
211struct PointArray2
212{
213 float *array; // 3*numpoints items
214 float *array2_1;
215 unsigned int *color_array;
216 int numpoints;
220 Low_GLuint vao[1];
222};
223
224struct PointArray3
225{
226 float *array;
227 unsigned int *color;
228 int numpoints;
230 Low_GLuint vao[1];
231};
232
233struct PlaneData
234{
235 std::vector<float> array;
236 std::vector<unsigned char> cmd_array;
237};
238
239struct TBuffer2
240{
241 int type;
242 int duration;
243 int sample;
244};
245
246struct TBuffer
247{
248 int numchannels;
249 int numslots;
250 TBuffer2 *buf; // 2d buffer
251};
252
254{
255 int sx, sy;
256 int x,y;
257 int top;
258};
259struct FontAtlasInfo
260{
261 std::map<int, FontAtlasGlyphInfo> char_map;
262 int atlas_sx;
263 int atlas_sy;
264};
265
266
267struct BO_Impl
268{
269 GameApi::P mesh;
270 GameApi::O bools;
271 GameApi::FD fd;
272};
273struct PD_Impl
274{
275 GameApi::P mesh;
276 GameApi::SFO distance_field;
277};
278struct Pa_Impl
279{
280 std::vector<GameApi::P> vec;
281};
282struct Va_Impl
283{
284 std::vector<GameApi::VA> vec;
285};
286
287
288struct AnimImpl
289{
290 AnimInt *wave_int;
291 AnimPoint3d *wave_point;
292 AnimFloat *wave_float;
293};
294struct FunctionImpl
295{
296 Function<float,float> *func;
297 float size;
298};
299
300struct SurfaceImpl
301{
302 SurfaceIn3d *surf;
303};
304
305
306struct EnvImpl
307{
308 std::vector<Point> pt;
309 //std::vector<MatrixInterface*> matrix;
311 std::vector<Vector> vectors;
312 std::vector<Color> colors;
313 std::vector<VolumeObject*> volumes;
314 std::vector<FloatVolumeObject*> floatvolumes;
315 std::vector<BitmapHandle*> bm;
316 std::vector<BitmapArray2<Color> *> bm_array;
317 std::vector<BoolBitmap> bool_bm;
318 std::vector<FloatBitmap> float_bm;
319 std::vector<SpaceImpl> sp;
320 std::vector<LineImpl> ln;
321 std::vector<SpritePosImpl> spr_pos;
322 std::vector<AnimImpl> anim;
323 std::vector<FaceCollPolyHandle*> poly;
324 std::vector<std::shared_ptr<void> > deletes;
325 std::vector<FunctionImpl> func;
326 std::vector<SurfaceImpl> surfaces;
327 //std::vector<VBOObjects*> vbos;
328 std::vector<IDImpl> ids;
329 std::vector<NDim<float,Point>*> dims;
330 std::vector<StateInfo2> states;
331 std::vector<StateRange> state_ranges; // ST type points to this array
332 std::vector<ContinuousBitmap<Color>*> continuous_bitmaps;
333 std::vector<VertexArraySet*> vertex_array;
334 std::vector<RenderVertexArray*> vertex_array_render;
335 std::vector<int> texture_id;
336 std::vector<std::string> shader_float_parameter;
337 std::vector<std::string> shader_int_parameter;
338
339 std::vector<Voxel<unsigned int>*> voxels;
340 std::vector<Voxel<int>*> voxels2;
341 std::vector<TROArray*> timeranges; // statechange time ranges
342 std::vector<VArray*> timerange_vertexarrays; // statechange vertex arrays
343 std::vector<ShaderPriv2*> shaders;
344 std::vector<TextureI*> textures;
345 std::vector<TexCoordQuad> tex_quads;
346 std::vector<Separate*> separates;
347 std::vector<PlanePoints2d*> plane_points;
348 std::vector<PlaneData> plane_array;
349 std::vector<Waveform*> waveforms;
350 std::vector<Array<int, ObjectWithPos> * > object_move;
351 std::vector<std::vector<VertexArrayWithPos> *> object_move_vertex_array;
352 std::vector<Bitmap<float>*> layout_data;
353 std::map<int, ArrayRender*> renders; // BM.id -> arrayrender
354 std::map<int, ArrayRender*> renders2; // BM.id -> arrayrender
355 std::vector<Layout*> layouts;
356 std::vector<PointArray2*> pointarray;
357 std::vector<PointArray3*> pointarray3;
358 std::vector<PointCollection*> pointcollarray;
359 std::vector<LineCollection*> linearray;
360 std::vector<ColorVolumeObject*> colorvolume;
361 std::map<int, ShaderPriv2*> shader_privs;
362 std::vector<DistanceRenderable*> distvolume;
363 std::vector<VectorVolumeObject*> vectorvolume;
364 std::vector<PointsApiPoints*> pointsapi_points;
365 std::vector<LazyValue<float>*> floats;
366 std::vector<Array<int,float>*> float_array;
367 std::vector<FBOPriv> fbos;
368 std::vector<Samples*> samples;
369 std::vector<Tracker*> trackers;
370 std::vector<TBuffer> tracker_buf;
371 std::vector<Wavs> wavs;
372 std::vector<ShaderModule*> shader_module;
373 std::vector<GuiWidget*> widgets;
374 std::vector<GameApiModule *> gameapi_modules;
375 std::vector<FontAtlasInfo*> font_atlas;
376 std::vector<MainLoopItem*> main_loop;
377 std::vector<std::vector<int>*> arrays;
378 std::vector<ExprNode*> exprs;
379 std::vector<PhysicsNode*> phys;
380 std::vector<TriStrip*> tri_strip;
381 std::vector<Cutter*> cutters;
382 std::vector<BO_Impl> boolean_ops;
383 std::vector<PD_Impl> polydistfield;
384 std::vector<std::vector<int> > handle_array;
385 std::vector<std::vector<int> > template_array;
386 std::vector<Collision*> collision_array;
387 std::vector<Movement*> movement_array;
388 std::vector<ImplicitFunction3d*> implicit;
389 std::vector<TreeLevel*> tree_levels;
390 std::vector<TreeStack*> trees;
391 std::vector<Material*> materials;
392 std::vector<ShaderCall*> shadercalls;
393 std::vector<Curve<Point>*> curves;
394 std::vector<MatrixArray*> matrix_arrays;
395 std::vector<Curve<Matrix>*> matrix_curves;
396 std::vector<PlaneShape*> plane_shapes;
397 std::vector<SkeletalNode*> skeletals;
398 std::vector<std::shared_ptr<void> > temp_deletes;
399 std::vector<Pa_Impl> polygon_array;
400 std::vector<Va_Impl> va_array;
401 std::vector<MixedI*> mixed;
402 std::vector<ColorChange*> color_change;
403 std::vector<Blocker*> blockers;
404 std::vector<Splitter*> splitters;
405 std::vector<VertexAnimNode*> vertex_anims;
406 std::vector<PointTransform*> point_transforms;
407 std::vector<CurvePos*> curve_pos;
408 std::vector<ArrayType*> arrays2;
409 std::vector<Fetcher<int>*> int_fetchers;
410 std::vector<Fetcher<std::string>*> string_fetchers;
411 std::vector<Fetcher<float>*> float_fetchers;
412 std::vector<Fetcher<Point>*> point_fetchers;
414 std::vector<GlyphInterface*> glyph_interfaces;
415 std::vector<FontInterface*> font_interfaces;
416 std::vector<StringDisplay*> string_displays;
417 std::vector<CmdExecute*> cmds;
418 std::vector<CurvePatch*> curve_patches;
419 std::vector<PropertyArray*> prop_array;
420 std::vector<Space3d*> space_3d;
421 std::vector<LinesInPlane*> plane_lines;
422 std::vector<PointsInPlane*> plane_points2;
423 std::vector<FacesInPlane*> plane_faces;
424 std::map<int, TextureID*> txids;
425 std::vector<ShaderI*> shader_interface;
426 std::vector<ContinuousBitmap<float>*> cont_floats;
427 std::vector<ContinuousBitmap<bool>*> cont_bools;
428 std::vector<DynamicChange*> dyn_change;
429 std::vector<std::vector<float> *> polynomials;
430 std::vector<ShaderBitmap*> shaderbitmaps;
431 std::vector<DiskStore*> disk_store;
432 std::vector<Bitmap<int>*> int_bitmaps;
433 std::vector<InputForMoving*> move_input;
434 std::vector<CurveGroup*> curve_group;
435 std::vector<MeshAnim*> mesh_anim;
436 std::vector<FrameBufferLoop*> frame_loop;
437 std::vector<FrameBuffer*> frame_buffer;
438 std::vector<HeavyOperation*> heavys;
439 //std::vector<EventInfo> event_infos;
440 Sequencer2 *event_infos; // owned, one level only.
441 pthread_mutex_t mutex;
442 void lock() { pthread_mutex_lock(&mutex); }
443 void unlock() { pthread_mutex_unlock(&mutex); }
444#ifdef HAS_FREETYPE
445 FT_Library lib;
446#endif
447 std::vector<Font> fonts;
448 static ::EnvImpl *Environment(GameApi::Env *e) { return (EnvImpl*)e->envimpl; }
450 {
451 temp_deletes.resize(0);
452 temp_deletes.shrink_to_fit();
453 }
454 EXPORT std::vector<int> store_counts() const
455 {
456 std::vector<int> vec;
457 vec.push_back(vertex_array_render.size());
458 vec.push_back(vertex_array.size());
459 vec.push_back(renders.size());
460 vec.push_back(renders2.size());
461 return vec;
462 }
463 EXPORT void free_to_counts(std::vector<int> vec)
464 {
465 int sk2 = vertex_array_render.size();
466 int start0=vec[0];
467 for(int ii2=start0;ii2<sk2;ii2++)
468 {
470 delete s;
471 }
472 int start1 = vec[1];
473 int sk1 = vertex_array.size();
474 for(int ii1=start1;ii1<sk1;ii1++)
475 {
477 delete s;
478 }
479
480 int start2 = vec[2];
481 std::map<int, ArrayRender*>::iterator it = renders.begin();
482 std::advance(it,start2);
483 for(;it!=renders.end();it++)
484 {
485 ArrayRender *rend = (*it).second;
486 delete rend;
487 }
488 int start3 = vec[3];
489 std::map<int, ArrayRender*>::iterator it2 = renders2.begin();
490 std::advance(it,start3);
491 for(;it2!=renders2.end();it2++)
492 {
493 ArrayRender *rend = (*it2).second;
494 delete rend;
495 }
496
497 }
499 {
500 deletes.resize(0);
501 deletes.shrink_to_fit();
502 int sk6 = textures.size();
503 for(int ii6=0;ii6<sk6;ii6++)
504 {
505 TextureI *ptr = textures[ii6];
506 delete ptr;
507 textures[ii6]=0;
508 }
509 textures.resize(0);
510 textures.shrink_to_fit();
511 int sk5 = pointsapi_points.size();
512 for(int ii5=0;ii5<sk5;ii5++)
513 {
515 delete p;
516 pointsapi_points[ii5] = 0;
517 }
518 pointsapi_points.resize(0);
519 pointsapi_points.shrink_to_fit();
520 int sk4 = plane_points.size();
521 for(int ii4=0;ii4<sk4;ii4++)
522 {
523 PlanePoints2d *p = plane_points[ii4];
524 delete p;
525 plane_points[ii4]=0;
526 }
527 plane_points.resize(0);
528 plane_points.shrink_to_fit();
529 int sk3 = continuous_bitmaps.size();
530 for(int ii3=0;ii3<sk3;ii3++)
531 {
533 delete p;
534 continuous_bitmaps[ii3]=0;
535 }
536 continuous_bitmaps.resize(0);
537 continuous_bitmaps.shrink_to_fit();
538#if 0
539 int sk2 = vertex_array_render.size();
540 for(int ii2=0;ii2<sk2;ii2++)
541 {
543 delete s;
544 }
545
546 int sk1 = vertex_array.size();
547 for(int ii1=0;ii1<sk1;ii1++)
548 {
550 delete s;
551 }
552
553 std::map<int, ArrayRender*>::iterator it = renders.begin();
554 for(;it!=renders.end();it++)
555 {
556 ArrayRender *rend = (*it).second;
557 delete rend;
558 }
559 std::map<int, ArrayRender*>::iterator it2 = renders2.begin();
560 for(;it2!=renders2.end();it2++)
561 {
562 ArrayRender *rend = (*it2).second;
563 delete rend;
564 }
565#endif
566#if 1
567 int vv1 = volumes.size();
568 for(int i_v=0;i_v<vv1;i_v++)
569 {
570 delete volumes[i_v];
571 volumes[i_v] =0;
572 }
573 volumes.resize(0);
574 volumes.shrink_to_fit();
575#endif
576 int vv2 = floatvolumes.size();
577 for(int i_vv2=0;i_vv2<vv2;i_vv2++)
578 {
579 delete floatvolumes[i_vv2];
580 floatvolumes[i_vv2]=0;
581 }
582 floatvolumes.resize(0);
583 floatvolumes.shrink_to_fit();
584#if 0
585 int vv3 = pointarray.size();
586 for(int i_vv3=0;i_vv3<vv3;i_vv3++)
587 {
588 delete [] pointarray[i_vv3]->array;
589 delete [] pointarray[i_vv3]->color_array;
590 delete pointarray[i_vv3];
591 pointarray[i_vv3]=0;
592 }
593 pointarray.resize(0);
594 pointarray.shrink_to_fit();
595#endif
596#if 0
597 int vv3a = pointarray3.size();
598 for(int i_vv3a=0;i_vv3a<vv3a;i_vv3a++)
599 {
600 delete [] pointarray3[i_vv3a]->array;
601 delete [] pointarray3[i_vv3a]->color;
602 delete pointarray3[i_vv3a];
603 pointarray3[i_vv3a]=0;
604 }
605 pointarray3.resize(0);
606 pointarray3.shrink_to_fit();
607#endif
608 int vv4 = linearray.size();
609 for(int i_vv4=0;i_vv4<vv4;i_vv4++)
610 {
611 delete linearray[i_vv4];
612 linearray[i_vv4]=0;
613 }
614 linearray.resize(0);
615 linearray.shrink_to_fit();
616 int vv5 = pointcollarray.size();
617 for(int i_vv5=0;i_vv5<vv5;i_vv5++)
618 {
619 delete pointcollarray[i_vv5];
620 pointcollarray[i_vv5]=0;
621 }
622 pointcollarray.resize(0);
623 pointcollarray.shrink_to_fit();
624 int ss1 = bool_bm.size();
625 for(int i_1=0;i_1<ss1;i_1++)
626 {
627 BoolBitmap &bm = bool_bm[i_1];
628 delete bm.bitmap;
629 bm.bitmap=0;
630 }
631 bool_bm.resize(0);
632 bool_bm.shrink_to_fit();
633 int ss1a = waveforms.size();
634 for(int i_1a=0;i_1a<ss1a;i_1a++)
635 {
636 Waveform *bm = waveforms[i_1a];
637 delete bm;
638 waveforms[i_1a]=0;
639 }
640 waveforms.resize(0);
641 waveforms.shrink_to_fit();
642 int ss2 = float_bm.size();
643 for(int i_2=0;i_2<ss2;i_2++)
644 {
645 FloatBitmap &bm = float_bm[i_2];
646 delete bm.bitmap;
647 bm.bitmap=0;
648 }
649 float_bm.resize(0);
650 float_bm.shrink_to_fit();
651 int s0 = fonts.size();
652 for(int i0=0;i0<s0;i0++)
653 {
654 Font f = fonts[i0];
655 delete f.bm;
656 fonts[i0].bm=0;
657 }
658 fonts.resize(0);
659 fonts.shrink_to_fit();
660 int s1 = bm.size();
661 for(int i1=0;i1<s1;i1++)
662 {
663 BitmapHandle *handle = bm[i1];
664 //std::cout << "EnvImpl destructor: " << handle << std::endl;
665 delete handle;
666 bm[i1]=0;
667 }
668 bm.resize(0);
669 bm.shrink_to_fit();
670 int s2 = anim.size();
671 for(int i2=0;i2<s2;i2++)
672 {
673 AnimImpl *impl = &anim[i2];
674 delete impl->wave_int;
675 delete impl->wave_point;
676 delete impl->wave_float;
677 }
678 anim.resize(0);
679 anim.shrink_to_fit();
680 int s3 = poly.size();
681 for(int i3=0;i3<s3;i3++)
682 {
683 FaceCollPolyHandle *handle = poly[i3];
684 delete handle;
685 poly[i3]=0;
686 }
687 poly.resize(0);
688 poly.shrink_to_fit();
689 int s4 = func.size();
690 for(int i4=0;i4<s4;i4++)
691 {
692 FunctionImpl f = func[i4];
693 delete f.func;
694 func[i4].func=0;
695 }
696 func.resize(0);
697 func.shrink_to_fit();
698#if 0
699 int s5 = surfaces.size();
700 for(int i5=0;i5<s5;i5++)
701 {
702 SurfaceImpl s = surfaces[i5];
703 delete s.surf;
704 surfaces[i5].surf=0;
705 }
706 surfaces.resize(0);
707 surfaces.shrink_to_fit();
708#endif
709 delete event_infos;
710 event_infos = 0;
711
712 }
715};
717{
718 int id;
719 virtual ~PolyHandle() { }
720};
721//struct FaceCollPolyHandle : public PolyHandle
722//{
723// FaceCollection *coll;
724// bool collowned;
725// //FaceCollection **collarray;
726// Array<int, FaceCollection*> *collarray;
727// bool collarrayowned;
728 //int size;
729
730// ~FaceCollPolyHandle() { if (collowned) delete coll; if (collarrayowned) delete [] collarray; }
731
732//};
733
734
736{
738 FaceCollPolyHandle *handle = 0;
739
740 if (p.id >=0 && p.id < (int)ee->poly.size())
741 handle = ee->poly[p.id];
742 //std::cout << "find_poly:" << handle << std::endl;
743 return handle;
744}
745
746namespace GameApi {
747
748struct EveryApi
749{
756 Env &get_env() { return env; }
757
772 //CurveApi curve_api;
780 //StateChangeApi state_change_api;
815private:
816 Env &env;
817 EveryApi(const EveryApi&);
818 void operator=(const EveryApi&);
819
820};
821
822
823
824
825
826
827
828
829} // namespace
830
831
832class BitmapFromBuffer : public ColorBitmap
833{
834public:
836 void Prepare() { }
837 int SizeX() const { if (buf.buffer!=0) return buf.width; return 0; }
838 int SizeY() const { if (buf.buffer!=0) return buf.height; return 0; }
839 Color Map(int x, int y) const
840 {
841 if (x >= 0 && x <int(buf.width))
842 if (y >= 0 && y < int(buf.height))
843 return Color(buf.buffer[x+y*buf.ydelta]);
844 return Color();
845 }
846 unsigned int &Map2(int x, int y) const
847 {
848 if (x >= 0 && x <int(buf.width))
849 if (y >= 0 && y < int(buf.height))
850 return buf.buffer[x+y*buf.ydelta];
851 throw "error";
852 }
853
854
855public:
857};
858int bitmap_find_data(std::string data);
859extern std::vector<std::pair<std::string,int> > bitmap_prepare_cache_data;
860std::vector<unsigned char> load_from_url(std::string url);
861void ProgressBar(int num, int val, int max, std::string label);
862BufferRef LoadImageFromString(std::vector<unsigned char> buffer, bool &success);
863
865{
867 BitmapHandle *handle = 0;
868
869 if (b.id >=0 && b.id < (int)ee->bm.size())
870 handle = ee->bm[b.id];
871 return handle;
872}
873
874Bitmap<Color> *find_color_bitmap(BitmapHandle *handle, int bbm_choose=-1);
875
877{
878
879 BitmapArrayHandle *ahandle = dynamic_cast<BitmapArrayHandle*>(handle);
880 if (ahandle)
881 {
882 if (bbm_choose != -1 && bbm_choose >=0 && bbm_choose < (int)ahandle->vec.size())
883 handle = ahandle->vec[bbm_choose];
884 }
885
886 BitmapColorHandle *chandle = dynamic_cast<BitmapColorHandle*>(handle);
887 BitmapTileHandle *chandle2 = dynamic_cast<BitmapTileHandle*>(handle);
888 if (!chandle && !chandle2) return 0;
889 if (chandle)
890 return chandle->bm;
891 return chandle2->bm;
892}
897
899{
901 env->bm.push_back(handle);
902 GameApi::BM bm;
903 bm.id = env->bm.size()-1;
904
905 //std::cout << "add_bitmap: " << bm.id << std::endl;
906 //bm.type = 0;
907 handle->id = bm.id;
908 return bm;
909}
910
911
913{
915 handle->bm = bm;
917 return add_bitmap(e,handle);
918}
920{
922 handle->bm = bm;
923 return add_bitmap(e,handle);
924}
925
927{
929 BoolBitmap *handle = 0;
930
931 if (b.id >=0 && b.id < (int)ee->bool_bm.size())
932 handle = &ee->bool_bm[b.id];
933 return handle;
934}
935
936
938{
940 BoolBitmap handle;
941 handle.bitmap = bitmap;
942 env->bool_bm.push_back(handle);
943 GameApi::BB bm;
944 bm.id = env->bool_bm.size()-1;
945 //bm.type = 0;
946 return bm;
947}
948
949
950
struct Envi env
Env e
Definition Common.cc:2
std::vector< std::pair< std::string, int > > bitmap_prepare_cache_data
Definition GameApi_bm.cc:1010
#define EXPORT
Definition GameApi.hh:334
unsigned int Low_GLuint
Definition GameApi_low.hh:42
Bitmap< Color > ColorBitmap
Definition GraphI.hh:901
Definition GraphI.hh:2201
Definition GameApi_h.hh:424
Definition GameApi_h.hh:347
Definition GameApi_h.hh:384
Definition Effect.hh:11461
Definition EffectI.hh:22
Definition Graph.hh:2459
Color Map(int x, int y) const
Definition Common2.hh:839
unsigned int & Map2(int x, int y) const
Definition Common2.hh:846
BitmapFromBuffer(BufferRef buf)
Definition Common2.hh:835
void Prepare()
Definition Common2.hh:836
int SizeY() const
Definition Common2.hh:838
int SizeX() const
Definition Common2.hh:837
BufferRef buf
Definition Graph.hh:2488
Definition GraphI.hh:826
Definition Effect.hh:61
virtual bool Inside(Point p) const
Definition Common2.hh:75
virtual ~BooleanOps()
Definition Common2.hh:74
Definition Effect.hh:67
Definition VolumeObjects.hh:306
Definition VectorTools.hh:380
Definition GraphI.hh:1164
Definition Graph.hh:8708
Definition EffectI.hh:212
Definition FloatVolumeObject.hh:11
Definition Font.hh:101
Bitmap< int > * bm
Definition Common2.hh:197
Definition GameApi.hh:1377
Definition GameApi.hh:1082
Definition GameApi.hh:422
Definition GameApi.hh:3717
Definition GameApi.hh:2771
Definition GameApi.hh:2038
Definition GameApi.hh:3928
Definition GameApi.hh:2574
Definition GameApi.hh:3851
Definition GameApi.hh:1481
Definition GameApi.hh:2754
Definition GameApi.hh:2616
Definition GameApi.hh:362
Definition GameApi.hh:1416
Definition GameApi.hh:3767
Definition GameApi.hh:2533
Definition GameApi.hh:1287
Definition GameApi.hh:4577
Definition GameApi.hh:1548
Definition GameApi.hh:1061
Definition GameApi.hh:1649
Definition GameApi.hh:4165
Definition GameApi.hh:4545
Definition GameApi.hh:442
Definition GameApi.hh:1869
Definition GameApi.hh:3992
Definition GameApi.hh:4285
Definition GameApi.hh:2125
Definition GameApi.hh:3613
Definition GameApi.hh:2006
Definition GameApi.hh:1841
Definition GameApi.hh:3644
Definition GameApi.hh:3943
Definition GameApi.hh:4032
Definition GameApi.hh:2922
Definition GameApi.hh:2824
Definition GameApi.hh:2793
Definition GameApi.hh:3549
Definition GameApi.hh:2676
Definition GameApi.hh:4486
Definition GameApi.hh:1742
Definition GameApi.hh:2053
Definition GameApi.hh:951
Definition GameApi.hh:2697
Definition GameApi.hh:995
Definition GameApi.hh:3566
Definition GameApi.hh:1854
Definition GameApi.hh:2723
Definition GameApi.hh:4380
Definition GameApi.hh:4245
Definition GameApi.hh:2599
Definition GameApi.hh:2066
Definition GameApi.hh:1670
Definition GameApi.hh:3879
Definition GameApi.hh:2475
Definition GameApi.hh:3513
Definition GameApi_h.hh:491
virtual int type(int count) const =0
virtual int pointnum(int count) const =0
virtual int Poly_id(int count) const =0
virtual int Size() const =0
virtual int facenum(int count) const =0
Definition Graph.hh:8395
Definition Effect.hh:145
Definition Serialize.hh:174
Definition Graph.hh:8313
Definition Effect.hh:2456
Definition GraphI.hh:2349
Definition VertexArray.hh:351
Definition DistanceObject.hh:166
Definition Serialize.hh:255
Definition Effect.hh:3163
void Prepare()
Definition Common2.hh:90
Definition Effect.hh:3156
void Prepare()
Definition Common2.hh:85
Definition Effect.hh:1880
Definition StateChange.hh:94
Definition Graph.hh:8162
Definition StateChange.hh:120
Definition VolumeObjects.hh:312
Definition VertexArray.hh:49
Definition VolumeObjects.hh:130
Definition Effect.hh:5073
IMPORT std::string gameapi_homepageurl
Definition GameApi_bm.cc:1942
int async_pending_count
Definition GameApi.cc:18142
lazy data
Definition meshpage.php:1583
url
Definition meshpage.php:1781
Definition FreeType.hh:46
void ProgressBar(int num, int val, int max, std::string label)
Definition GameApi_dep_env.cc:4198
std::vector< unsigned char > load_from_url(std::string url)
FaceCollPolyHandle * find_poly(GameApi::Env &e, GameApi::P p)
Definition Common2.hh:735
int bitmap_find_data(std::string data)
Definition GameApi_bm.cc:1011
Bitmap< Color > * find_color_bitmap(BitmapHandle *handle, int bbm_choose=-1)
Definition Common2.hh:876
BufferRef LoadImageFromString(std::vector< unsigned char > buffer, bool &success)
Definition Parser.cc:116
BitmapHandle * find_bitmap(GameApi::Env &e, GameApi::BM b)
Definition Common2.hh:864
GameApi::BB add_bool_bitmap(GameApi::Env &e, Bitmap< bool > *bitmap)
Definition Common2.hh:937
GameApi::BM add_color_bitmap(GameApi::Env &e, Bitmap< Color > *bm)
Definition Common2.hh:912
Bitmap< Color > * find_bitmap2(GameApi::Env &e, GameApi::BM bm)
Definition Common2.hh:893
BoolBitmap * find_bool_bitmap(GameApi::Env &e, GameApi::BB b)
Definition Common2.hh:926
GameApi::BM add_bitmap(GameApi::Env &e, BitmapHandle *handle)
Definition Common2.hh:898
GameApi::BM add_color_bitmap2(GameApi::Env &e, Bitmap< Color > *bm)
Definition Common2.hh:919
double f(const std::string &, double, bool) noexcept
Definition profile_cpp_calls_2.cpp:4
Definition GameApi_h.hh:474
AnimPoint3d * wave_point
Definition GameApi_h.hh:476
AnimInt * wave_int
Definition GameApi_h.hh:475
AnimFloat * wave_float
Definition GameApi_h.hh:477
Definition GameApi_h.hh:634
GameApi::O bools
Definition GameApi_h.hh:636
GameApi::P mesh
Definition GameApi_h.hh:635
GameApi::FD fd
Definition GameApi_h.hh:637
Definition Parser.hh:25
std::vector< int > owned
Definition Parser.hh:27
~BitmapArrayHandle()
Definition Common2.hh:43
std::vector< BitmapHandle * > vec
Definition Parser.hh:26
Definition Parser.hh:15
~BitmapColorHandle()
Definition Common2.hh:32
Bitmap< Color > * bm
Definition Parser.hh:16
Definition Parser.hh:8
int id
Definition Parser.hh:9
virtual ~BitmapHandle()
Definition Common2.hh:25
Definition Parser.hh:20
Bitmap< int > * bm
Definition Parser.hh:21
~BitmapIntHandle()
Definition Common2.hh:37
Definition Parser.hh:43
Bitmap< Pos > * bm
Definition Parser.hh:44
~BitmapPosHandle()
Definition Common2.hh:60
Definition Parser.hh:48
~BitmapTileHandle()
Definition Common2.hh:66
Bitmap< Color > * bm
Definition Parser.hh:49
int tile_sy
Definition Parser.hh:50
int tile_sx
Definition Parser.hh:50
Definition GameApi_h.hh:465
Bitmap< bool > * bitmap
Definition GameApi_h.hh:466
Definition Buffer.hh:32
Definition GameApi_h.hh:672
std::vector< std::vector< int >, GameApiAllocator< std::vector< int > > > handle_array
Definition GameApi_h.hh:749
std::map< int, TextureID * > txids
Definition GameApi_h.hh:789
std::vector< FontInterface *, GameApiAllocator< FontInterface * > > font_interfaces
Definition GameApi_h.hh:780
EnvImpl()
Definition GameApi_dep_env.cc:2018
std::vector< GlyphInterface *, GameApiAllocator< GlyphInterface * > > glyph_interfaces
Definition GameApi_h.hh:779
std::vector< Curve< Matrix > *, GameApiAllocator< Curve< Matrix > * > > matrix_curves
Definition GameApi_h.hh:760
std::vector< MatrixArray *, GameApiAllocator< MatrixArray * > > matrix_arrays
Definition GameApi_h.hh:759
std::vector< std::vector< float > *, GameApiAllocator< std::vector< float > * > > polynomials
Definition GameApi_h.hh:794
std::vector< FaceCollPolyHandle *, GameApiAllocator< FaceCollPolyHandle * > > poly
Definition GameApi_h.hh:688
std::map< int, ShaderPriv2 * > shader_privs
Definition GameApi_h.hh:726
std::vector< FontAtlasInfo *, GameApiAllocator< FontAtlasInfo * > > font_atlas
Definition GameApi_h.hh:740
std::vector< TextureI *, GameApiAllocator< TextureI * > > textures
Definition GameApi_h.hh:709
EXPORT void free_memory()
Definition Common2.hh:498
std::vector< VArray *, GameApiAllocator< VArray * > > timerange_vertexarrays
Definition GameApi_h.hh:707
std::vector< ArrayType *, GameApiAllocator< ArrayType * > > arrays2
Definition GameApi_h.hh:773
std::vector< AnimImpl, GameApiAllocator< AnimImpl > > anim
Definition GameApi_h.hh:687
EXPORT std::vector< int > store_counts() const
Definition Common2.hh:454
std::vector< LinesInPlane *, GameApiAllocator< LinesInPlane * > > plane_lines
Definition GameApi_h.hh:786
::EnvImpl * Environment(GameApi::Env *e)
Definition Common2.hh:448
GameApi::PT cursor_pos_point_id
Definition GameApi_h.hh:675
std::vector< VolumeObject *, GameApiAllocator< VolumeObject * > > volumes
Definition GameApi_h.hh:678
std::vector< FrameBufferLoop *, GameApiAllocator< FrameBufferLoop * > > frame_loop
Definition GameApi_h.hh:801
std::vector< PlaneData, GameApiAllocator< PlaneData > > plane_array
Definition GameApi_h.hh:713
std::vector< std::string, GameApiAllocator< std::string > > shader_float_parameter
Definition GameApi_h.hh:701
std::vector< DynamicChange *, GameApiAllocator< DynamicChange * > > dyn_change
Definition GameApi_h.hh:793
std::vector< PointCollection *, GameApiAllocator< PointCollection * > > pointcollarray
Definition GameApi_h.hh:723
EXPORT void free_temp_memory()
Definition Common2.hh:449
std::vector< Bitmap< int > *, GameApiAllocator< Bitmap< int > * > > int_bitmaps
Definition GameApi_h.hh:797
void lock()
Definition Common2.hh:442
std::vector< StringDisplay *, GameApiAllocator< StringDisplay * > > string_displays
Definition GameApi_h.hh:781
std::vector< CurvePatch *, GameApiAllocator< CurvePatch * > > curve_patches
Definition GameApi_h.hh:783
std::vector< Material *, GameApiAllocator< Material * > > materials
Definition GameApi_h.hh:756
std::vector< TexCoordQuad, GameApiAllocator< TexCoordQuad > > tex_quads
Definition GameApi_h.hh:710
std::vector< std::string, GameApiAllocator< std::string > > shader_int_parameter
Definition GameApi_h.hh:702
std::vector< VertexArraySet *, GameApiAllocator< VertexArraySet * > > vertex_array
Definition GameApi_h.hh:698
std::vector< GameApiModule *, GameApiAllocator< GameApiModule * > > gameapi_modules
Definition GameApi_h.hh:739
std::vector< std::vector< int >, GameApiAllocator< std::vector< int > > > template_array
Definition GameApi_h.hh:750
std::vector< ShaderI *, GameApiAllocator< ShaderI * > > shader_interface
Definition GameApi_h.hh:790
std::vector< LazyValue< float > *, GameApiAllocator< LazyValue< float > * > > floats
Definition GameApi_h.hh:730
std::vector< std::vector< int > *, GameApiAllocator< std::vector< int > * > > arrays
Definition GameApi_h.hh:742
std::vector< SkeletalNode *, GameApiAllocator< SkeletalNode * > > skeletals
Definition GameApi_h.hh:762
std::vector< MixedI *, GameApiAllocator< MixedI * > > mixed
Definition GameApi_h.hh:766
std::vector< TriStrip *, GameApiAllocator< TriStrip * > > tri_strip
Definition GameApi_h.hh:745
std::vector< PointTransform *, GameApiAllocator< PointTransform * > > point_transforms
Definition GameApi_h.hh:771
std::vector< LineImpl, GameApiAllocator< LineImpl > > ln
Definition GameApi_h.hh:685
std::vector< BitmapHandle *, GameApiAllocator< BitmapHandle * > > bm
Definition GameApi_h.hh:680
std::vector< Point, GameApiAllocator< Point > > pt
Definition GameApi_h.hh:673
std::vector< FunctionImpl, GameApiAllocator< FunctionImpl > > func
Definition GameApi_h.hh:690
FT_Library lib
Definition GameApi_h.hh:845
std::vector< StateRange, GameApiAllocator< StateRange > > state_ranges
Definition GameApi_h.hh:696
std::vector< StateInfo2, GameApiAllocator< StateInfo2 > > states
Definition GameApi_h.hh:695
std::vector< ContinuousBitmap< Color > *, GameApiAllocator< ContinuousBitmap< Color > * > > continuous_bitmaps
Definition GameApi_h.hh:697
std::vector< Layout *, GameApiAllocator< Layout * > > layouts
Definition GameApi_h.hh:720
pthread_mutex_t mutex
Definition GameApi_h.hh:841
std::vector< ShaderBitmap *, GameApiAllocator< ShaderBitmap * > > shaderbitmaps
Definition GameApi_h.hh:795
std::vector< TreeLevel *, GameApiAllocator< TreeLevel * > > tree_levels
Definition GameApi_h.hh:754
std::vector< IDImpl, GameApiAllocator< IDImpl > > ids
Definition GameApi_h.hh:693
std::map< int, ArrayRender * > renders2
Definition GameApi_h.hh:719
std::vector< Tracker *, GameApiAllocator< Tracker * > > trackers
Definition GameApi_h.hh:734
std::vector< Collision *, GameApiAllocator< Collision * > > collision_array
Definition GameApi_h.hh:751
std::vector< Separate *, GameApiAllocator< Separate * > > separates
Definition GameApi_h.hh:711
std::vector< ExprNode *, GameApiAllocator< ExprNode * > > exprs
Definition GameApi_h.hh:743
std::vector< ColorChange *, GameApiAllocator< ColorChange * > > color_change
Definition GameApi_h.hh:767
std::vector< FacesInPlane *, GameApiAllocator< FacesInPlane * > > plane_faces
Definition GameApi_h.hh:788
std::vector< Vector, GameApiAllocator< Vector > > vectors
Definition GameApi_h.hh:676
std::vector< NDim< float, Point > *, GameApiAllocator< NDim< float, Point > * > > dims
Definition GameApi_h.hh:694
std::vector< CurveGroup *, GameApiAllocator< CurveGroup * > > curve_group
Definition GameApi_h.hh:799
std::vector< ShaderCall *, GameApiAllocator< ShaderCall * > > shadercalls
Definition GameApi_h.hh:757
std::vector< PointsInPlane *, GameApiAllocator< PointsInPlane * > > plane_points2
Definition GameApi_h.hh:787
std::vector< TROArray *, GameApiAllocator< TROArray * > > timeranges
Definition GameApi_h.hh:706
EXPORT void free_to_counts(std::vector< int > vec)
Definition Common2.hh:463
std::vector< ImplicitFunction3d *, GameApiAllocator< ImplicitFunction3d * > > implicit
Definition GameApi_h.hh:753
std::vector< PointsApiPoints *, GameApiAllocator< PointsApiPoints * > > pointsapi_points
Definition GameApi_h.hh:729
std::vector< BoolBitmap, GameApiAllocator< BoolBitmap > > bool_bm
Definition GameApi_h.hh:682
std::vector< ShaderPriv2 *, GameApiAllocator< ShaderPriv2 * > > shaders
Definition GameApi_h.hh:708
std::vector< Bitmap< float > *, GameApiAllocator< Bitmap< float > * > > layout_data
Definition GameApi_h.hh:717
std::vector< Movement *, GameApiAllocator< Movement * > > movement_array
Definition GameApi_h.hh:752
std::vector< Fetcher< float > *, GameApiAllocator< Fetcher< float > * > > float_fetchers
Definition GameApi_h.hh:776
std::vector< PointArray3 *, GameApiAllocator< PointArray3 * > > pointarray3
Definition GameApi_h.hh:722
std::vector< Array< int, float > *, GameApiAllocator< Array< int, float > * > > float_array
Definition GameApi_h.hh:731
std::vector< ContinuousBitmap< float > *, GameApiAllocator< ContinuousBitmap< float > * > > cont_floats
Definition GameApi_h.hh:791
std::vector< BO_Impl, GameApiAllocator< BO_Impl > > boolean_ops
Definition GameApi_h.hh:747
std::vector< VertexAnimNode *, GameApiAllocator< VertexAnimNode * > > vertex_anims
Definition GameApi_h.hh:770
std::vector< Blocker *, GameApiAllocator< Blocker * > > blockers
Definition GameApi_h.hh:768
std::map< int, ArrayRender * > renders
Definition GameApi_h.hh:718
std::vector< Font22 > fonts
Definition GameApi_h.hh:847
std::vector< Voxel< unsigned int > *, GameApiAllocator< Voxel< unsigned int > * > > voxels
Definition GameApi_h.hh:704
std::vector< int, GameApiAllocator< int > > texture_id
Definition GameApi_h.hh:700
std::vector< Samples *, GameApiAllocator< Samples * > > samples
Definition GameApi_h.hh:733
std::vector< PlaneShape *, GameApiAllocator< PlaneShape * > > plane_shapes
Definition GameApi_h.hh:761
std::vector< Fetcher< int > *, GameApiAllocator< Fetcher< int > * > > int_fetchers
Definition GameApi_h.hh:774
std::vector< Splitter *, GameApiAllocator< Splitter * > > splitters
Definition GameApi_h.hh:769
std::vector< SurfaceImpl, GameApiAllocator< SurfaceImpl > > surfaces
Definition GameApi_h.hh:691
std::vector< TreeStack *, GameApiAllocator< TreeStack * > > trees
Definition GameApi_h.hh:755
std::vector< SpritePosImpl, GameApiAllocator< SpritePosImpl > > spr_pos
Definition GameApi_h.hh:686
std::vector< PD_Impl, GameApiAllocator< PD_Impl > > polydistfield
Definition GameApi_h.hh:748
std::vector< PointArray2 *, GameApiAllocator< PointArray2 * > > pointarray
Definition GameApi_h.hh:721
std::vector< Va_Impl, GameApiAllocator< Va_Impl > > va_array
Definition GameApi_h.hh:765
std::vector< PhysicsNode *, GameApiAllocator< PhysicsNode * > > phys
Definition GameApi_h.hh:744
std::vector< PlanePoints2d *, GameApiAllocator< PlanePoints2d * > > plane_points
Definition GameApi_h.hh:712
std::vector< RenderVertexArray *, GameApiAllocator< RenderVertexArray * > > vertex_array_render
Definition GameApi_h.hh:699
std::vector< TBuffer, GameApiAllocator< TBuffer > > tracker_buf
Definition GameApi_h.hh:735
std::vector< Curve< Point > *, GameApiAllocator< Curve< Point > * > > curves
Definition GameApi_h.hh:758
std::vector< Waveform *, GameApiAllocator< Waveform * > > waveforms
Definition GameApi_h.hh:714
Sequencer2 * event_infos
Definition GameApi_h.hh:840
std::vector< FrameBuffer *, GameApiAllocator< FrameBuffer * > > frame_buffer
Definition GameApi_h.hh:802
std::vector< SpaceImpl, GameApiAllocator< SpaceImpl > > sp
Definition GameApi_h.hh:684
std::vector< std::shared_ptr< void > > deletes
Definition GameApi_h.hh:689
std::vector< HeavyOperation *, GameApiAllocator< HeavyOperation * > > heavys
Definition GameApi_h.hh:803
std::vector< BitmapArray2< Color > *, GameApiAllocator< BitmapArray2< Color > * > > bm_array
Definition GameApi_h.hh:681
std::vector< Cutter *, GameApiAllocator< Cutter * > > cutters
Definition GameApi_h.hh:746
std::vector< FloatBitmap, GameApiAllocator< FloatBitmap > > float_bm
Definition GameApi_h.hh:683
std::vector< ColorVolumeObject *, GameApiAllocator< ColorVolumeObject * > > colorvolume
Definition GameApi_h.hh:725
std::vector< DiskStore *, GameApiAllocator< DiskStore * > > disk_store
Definition GameApi_h.hh:796
std::vector< Fetcher< Point > *, GameApiAllocator< Fetcher< Point > * > > point_fetchers
Definition GameApi_h.hh:777
std::vector< Color, GameApiAllocator< Color > > colors
Definition GameApi_h.hh:677
ASyncLoader * async_loader
Definition GameApi_h.hh:778
std::vector< Fetcher< std::string > *, GameApiAllocator< Fetcher< std::string > * > > string_fetchers
Definition GameApi_h.hh:775
std::vector< ContinuousBitmap< bool > *, GameApiAllocator< ContinuousBitmap< bool > * > > cont_bools
Definition GameApi_h.hh:792
std::vector< Array< int, ObjectWithPos > *, GameApiAllocator< Array< int, ObjectWithPos > * > > object_move
Definition GameApi_h.hh:715
std::vector< CurvePos *, GameApiAllocator< CurvePos * > > curve_pos
Definition GameApi_h.hh:772
std::vector< std::vector< VertexArrayWithPos > *, GameApiAllocator< std::vector< VertexArrayWithPos > * > > object_move_vertex_array
Definition GameApi_h.hh:716
std::vector< Voxel< int > *, GameApiAllocator< Voxel< int > * > > voxels2
Definition GameApi_h.hh:705
std::vector< ShaderModule *, GameApiAllocator< ShaderModule * > > shader_module
Definition GameApi_h.hh:737
std::vector< FloatVolumeObject *, GameApiAllocator< FloatVolumeObject * > > floatvolumes
Definition GameApi_h.hh:679
std::vector< MeshAnim *, GameApiAllocator< MeshAnim * > > mesh_anim
Definition GameApi_h.hh:800
std::vector< DistanceRenderable *, GameApiAllocator< DistanceRenderable * > > distvolume
Definition GameApi_h.hh:727
std::vector< VectorVolumeObject *, GameApiAllocator< VectorVolumeObject * > > vectorvolume
Definition GameApi_h.hh:728
std::vector< Wavs, GameApiAllocator< Wavs > > wavs
Definition GameApi_h.hh:736
std::vector< Pa_Impl, GameApiAllocator< Pa_Impl > > polygon_array
Definition GameApi_h.hh:764
void unlock()
Definition Common2.hh:443
std::vector< FBOPriv, GameApiAllocator< FBOPriv > > fbos
Definition GameApi_h.hh:732
std::vector< LineCollection *, GameApiAllocator< LineCollection * > > linearray
Definition GameApi_h.hh:724
std::vector< PropertyArray *, GameApiAllocator< PropertyArray * > > prop_array
Definition GameApi_h.hh:784
std::vector< Space3d *, GameApiAllocator< Space3d * > > space_3d
Definition GameApi_h.hh:785
std::vector< InputForMoving *, GameApiAllocator< InputForMoving * > > move_input
Definition GameApi_h.hh:798
std::vector< GuiWidget *, GameApiAllocator< GuiWidget * > > widgets
Definition GameApi_h.hh:738
std::vector< std::shared_ptr< void > > temp_deletes
Definition GameApi_h.hh:763
std::vector< CmdExecute *, GameApiAllocator< CmdExecute * > > cmds
Definition GameApi_h.hh:782
std::vector< MainLoopItem *, GameApiAllocator< MainLoopItem * > > main_loop
Definition GameApi_h.hh:741
Definition GameApi_h.hh:322
Low_GLuint fbo_name
Definition GameApi_h.hh:323
int sy
Definition GameApi_h.hh:326
Low_GLuint depthbuffer
Definition GameApi_h.hh:325
int sx
Definition GameApi_h.hh:326
Low_GLuint texture
Definition GameApi_h.hh:324
Definition Parser.hh:55
Array< int, FaceCollection * > * collarray
Definition Parser.hh:60
FaceCollection * coll
Definition Parser.hh:58
bool collarrayowned
Definition Parser.hh:62
bool padding1
Definition Parser.hh:64
bool collowned
Definition Parser.hh:61
~FaceCollPolyHandle()
Definition Common2.hh:18
FaceCollPolyHandle()
Definition Common2.hh:8
bool padding2
Definition Parser.hh:65
int id
Definition Parser.hh:57
Definition GameApi_h.hh:469
Bitmap< float > * bitmap
Definition GameApi_h.hh:470
Definition GameApi_h.hh:615
int sy
Definition GameApi_h.hh:616
int x
Definition GameApi_h.hh:618
int y
Definition GameApi_h.hh:618
int top
Definition GameApi_h.hh:619
int sx
Definition GameApi_h.hh:616
Definition GameApi_h.hh:626
int atlas_sy
Definition GameApi_h.hh:629
std::map< int, FontAtlasGlyphInfo > char_map
Definition GameApi_h.hh:627
int atlas_sx
Definition GameApi_h.hh:628
Definition GameApi_h.hh:480
float size
Definition GameApi_h.hh:482
Function< float, float > * func
Definition GameApi_h.hh:481
Definition Common.hh:74
int id
Definition Common.hh:74
Definition Common.hh:71
int id
Definition Common.hh:71
Definition GameApi.hh:4664
SampleCollectionApi sample_api
Definition GameApi.hh:4700
PlaneApi plane_api
Definition GameApi.hh:4696
CollisionPlane collision_api
Definition GameApi.hh:4708
PolygonArrayApi polygon_arr_api
Definition GameApi.hh:4718
EventApi event_api
Definition GameApi.hh:4681
SurfaceApi surface_api
Definition GameApi.hh:4723
Skeletal skeletal_api
Definition GameApi.hh:4717
BitmapApi bitmap_api
Definition GameApi.hh:4674
SeparateApi separate_api
Definition GameApi.hh:4692
FrameBufferApi fbo_api
Definition GameApi.hh:4699
AnimApi anim_api
Definition GameApi.hh:4680
FloatVolumeApi float_volume_api
Definition GameApi.hh:4685
LinesApi lines_api
Definition GameApi.hh:4695
TriStripApi ts_api
Definition GameApi.hh:4705
MatrixApi matrix_api
Definition GameApi.hh:4671
MatricesApi matrices_api
Definition GameApi.hh:4716
WaveformApi waveform_api
Definition GameApi.hh:4693
TreeApi tree_api
Definition GameApi.hh:4712
UberShaderApi uber_api
Definition GameApi.hh:4714
BooleanOps bool_api
Definition GameApi.hh:4707
MainLoopApi mainloop_api
Definition GameApi.hh:4668
ShaderApi shader_api
Definition GameApi.hh:4689
SpriteApi sprite_api
Definition GameApi.hh:4672
CurveApi curve_api
Definition GameApi.hh:4715
GridApi grid_api
Definition GameApi.hh:4673
Env & get_env()
Definition Common2.hh:756
TrackerApi tracker_api
Definition GameApi.hh:4701
PhysicsApi physics_api
Definition GameApi.hh:4704
WModApi mod_api
Definition GameApi.hh:4703
NewPlaneApi newplane_api
Definition GameApi.hh:4722
PointsApi points_api
Definition GameApi.hh:4697
MovementNode move_api
Definition GameApi.hh:4709
ShaderModuleApi sh_api
Definition GameApi.hh:4702
VertexAnimApi vertex_anim_api
Definition GameApi.hh:4721
VectorVolumeApi vector_volume_api
Definition GameApi.hh:4688
FloatBitmapApi float_bitmap_api
Definition GameApi.hh:4677
BoolBitmapApi bool_bitmap_api
Definition GameApi.hh:4676
ColorVolumeApi color_volume_api
Definition GameApi.hh:4686
FunctionApi function_api
Definition GameApi.hh:4683
EveryApi(Env &e)
Definition Common2.hh:750
PickingApi picking_api
Definition GameApi.hh:4711
BlockerApi blocker_api
Definition GameApi.hh:4720
VolumeApi volume_api
Definition GameApi.hh:4684
PointApi point_api
Definition GameApi.hh:4669
CutterApi cutter_api
Definition GameApi.hh:4706
VectorApi vector_api
Definition GameApi.hh:4670
PolygonApi polygon_api
Definition GameApi.hh:4675
FontApi font_api
Definition GameApi.hh:4679
LowFrameBufferApi low_frame_api
Definition GameApi.hh:4724
VoxelApi voxel_api
Definition GameApi.hh:4698
MaterialsApi materials_api
Definition GameApi.hh:4713
PolygonDistanceField polygon_dist_api
Definition GameApi.hh:4719
ImplicitApi implicit_api
Definition GameApi.hh:4710
ContinuousBitmapApi cont_bitmap_api
Definition GameApi.hh:4678
TextureApi texture_api
Definition GameApi.hh:4691
ColorApi color_api
Definition GameApi.hh:4694
DistanceFloatVolumeApi dist_api
Definition GameApi.hh:4687
Definition GameApi.hh:190
Definition Common.hh:79
Definition Common.hh:86
int id
Definition Common.hh:86
Definition GameApi_h.hh:531
int id_num
Definition GameApi_h.hh:532
IDInterface * interface
Definition GameApi_h.hh:533
Definition GameApi_h.hh:337
float duration
Definition GameApi_h.hh:339
Point2d p1
Definition GameApi_h.hh:338
Point2d p2
Definition GameApi_h.hh:338
Definition GameApi_h.hh:546
GameApi::M m
Definition GameApi_h.hh:548
Definition GameApi_h.hh:640
GameApi::P mesh
Definition GameApi_h.hh:641
GameApi::SFO distance_field
Definition GameApi_h.hh:642
Definition GameApi_h.hh:645
std::vector< GameApi::P > vec
Definition GameApi_h.hh:646
Definition GameApi_h.hh:595
std::vector< float > array
Definition GameApi_h.hh:596
std::vector< unsigned char > cmd_array
Definition GameApi_h.hh:597
Definition VectorTools.hh:910
float x
Definition VectorTools.hh:911
float y
Definition VectorTools.hh:911
Definition GameApi_h.hh:557
unsigned int * color_array
Definition GameApi_h.hh:560
Low_GLuint buffer2
Definition GameApi_h.hh:564
Low_GLuint vao[1]
Definition GameApi_h.hh:565
Low_GLuint pos_buffer
Definition GameApi_h.hh:566
float * array
Definition GameApi_h.hh:558
float * array2_1
Definition GameApi_h.hh:559
int numpoints
Definition GameApi_h.hh:561
Low_GLuint buffer2_1
Definition GameApi_h.hh:563
Low_GLuint buffer
Definition GameApi_h.hh:562
Definition GameApi_h.hh:570
Low_GLuint buffer[2]
Definition GameApi_h.hh:576
int numpoints
Definition GameApi_h.hh:574
Low_GLuint vao[1]
Definition GameApi_h.hh:577
float * color
Definition GameApi_h.hh:572
float * array
Definition GameApi_h.hh:571
Definition Parser.cc:60
float x
Definition Parser.cc:60
float y
Definition Parser.cc:60
Definition Common2.hh:717
virtual ~PolyHandle()
Definition Common2.hh:719
int id
Definition Common2.hh:718
Definition GameApi_h.hh:314
Definition GameApi_h.hh:330
Point tl
Definition GameApi_h.hh:331
Point origo
Definition GameApi_h.hh:332
Point2d conv(Point p)
Definition Common2.hh:118
Point bl
Definition GameApi_h.hh:331
Point br
Definition GameApi_h.hh:331
Point z
Definition GameApi_h.hh:331
Point tr
Definition GameApi_h.hh:331
Definition GameApi_h.hh:342
float x
Definition GameApi_h.hh:343
float y
Definition GameApi_h.hh:343
Definition Common2.hh:95
MousePlane * plane
Definition Common2.hh:97
Array< int, bool > * enable_obj_array
Definition Common2.hh:96
Definition Common2.hh:100
int start_range
Definition Common2.hh:101
int range_size
Definition Common2.hh:102
Definition GameApi_h.hh:486
SurfaceIn3d * surf
Definition GameApi_h.hh:487
Definition GameApi_h.hh:601
int sample
Definition GameApi_h.hh:604
int duration
Definition GameApi_h.hh:603
int type
Definition GameApi_h.hh:602
Definition GameApi_h.hh:608
TBuffer2 * buf
Definition GameApi_h.hh:611
int numchannels
Definition GameApi_h.hh:609
int numslots
Definition GameApi_h.hh:610
Definition GameApi_h.hh:240
Point2d p1
Definition GameApi_h.hh:241
Point2d p2
Definition GameApi_h.hh:242
Definition GameApi_h.hh:649
std::vector< GameApi::VA > vec
Definition GameApi_h.hh:650
Definition GameApi_h.hh:551
GameApi::VA va
Definition GameApi_h.hh:552
GameApi::M m
Definition GameApi_h.hh:553
num
Definition view.php:2821