]> Pileus Git - grits/commit
Add primitive rendering types
authorAndy Spencer <andy753421@gmail.com>
Sat, 14 Nov 2009 08:45:52 +0000 (08:45 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sat, 14 Nov 2009 08:45:52 +0000 (08:45 +0000)
commit214123bfcc3d626b6e314d61ba46788608b29776
treeffff7d3b49da5dfbb2f380b15cd01a593363b431
parentad940f5d65ed4c95f72cac825244cae53dd6c78d
Add primitive rendering types

These types are not full GObjects, hopefully they will be faster and
more space efficient this way since there will likely be a very large
number of these objects. However, the API is similar.

GisProjection:
  Stores camera parameters.

GisPoint:
  Corresponds to OpenGL Vertex.

GisPrimitive:
  Base class for primitive drawing objects.
    - Contains a centroid for depth sorting
    - Contains a projection so that xyz values for vertexes associated with the
      primitive points can be store relative to a projection.

GisTriangle:
  For GL_TRIANGLES

GisQuad:
  For GL_QUADS

GisCallback:
  Contains a callback and user_data pointer that is called when the object is
  to be rendered.
src/Makefile.am
src/gis-prims.c [new file with mode: 0644]
src/gis-prims.h [new file with mode: 0644]