[AD] Primitives Addon Release 1

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Attached is the first release of the primitives addon. Naturally, it is not complete yet in the slightest, but this is the first time something logical could be submitted.

What it has now:

-All primitives that are based on lines are implemented for OpenGL and Software.
-Transformations for OpenGL and Software
-Software vertex buffers
-NaturalDocs documentation stuck here and there
-A somewhat normal public header?

What it doesn't have that it should have at this point:

-Anything DirectX, I can do this myself eventually, but it'd be nice to have someone more experienced with it help me out with this.

Problems so far:

-Blending does not work properly yet (or won't ever). The reason for this is that blending in A5 now is done via calling the glColor* before drawing the polygons. Since every vertex in the addon right now has a separate glColor* equivalent call, this approach will no longer feasible. In my mind, two things can be done: one, to specifically state that colour shading does not work for this addon; two, to implement this shading via a shader.
-API naming is not too great... I'd appreciate comments on it.

Compiling + Running:

-I haven't made a CMakeLists.txt for this, but basically compiling every .c file will do the trick for now. To run the example you need the DejaVuSans.ttf from the examples folder.

That should be all for now. Ask for any clarifications etc.

-SiegeLord


      

Attachment: primitives.tar.bz2
Description: application/bzip



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/