Renamed Frame to Quad; added drawq/addq; fixed some bugs.

This commit is contained in:
rude
2009-08-17 23:35:04 +02:00
parent d4a97d49f3
commit c52c218ba1
25 changed files with 317 additions and 299 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ namespace love
// | e2 e6 e10 e14 |
// | e3 e7 e11 e15 |
void Matrix::transform(vertex * dst, const vertex * src, int size)
void Matrix::transform(vertex * dst, const vertex * src, int size) const
{
for(int i = 0;i<size;i++)
{
+1 -1
View File
@@ -141,7 +141,7 @@ namespace love
* @param src The source vertices.
* @param size The number of vertices.
**/
void transform(vertex * dst, const vertex * src, int size);
void transform(vertex * dst, const vertex * src, int size) const;
}; // Matrix
+2 -2
View File
@@ -43,7 +43,7 @@ namespace love
// Graphics
GRAPHICS_DRAWABLE_ID,
GRAPHICS_IMAGE_ID,
GRAPHICS_FRAME_ID,
GRAPHICS_QUAD_ID,
GRAPHICS_GLYPH_ID,
GRAPHICS_ANIMATION_ID,
GRAPHICS_COLOR_ID,
@@ -99,7 +99,7 @@ namespace love
// Graphics.
const bits GRAPHICS_DRAWABLE_T = (bits(1) << GRAPHICS_DRAWABLE_ID) | OBJECT_T;
const bits GRAPHICS_IMAGE_T = (bits(1) << GRAPHICS_IMAGE_ID) | GRAPHICS_DRAWABLE_T;
const bits GRAPHICS_FRAME_T = (bits(1) << GRAPHICS_FRAME_ID) | OBJECT_T;
const bits GRAPHICS_QUAD_T = (bits(1) << GRAPHICS_QUAD_ID) | OBJECT_T;
const bits GRAPHICS_GLYPH_T = (bits(1) << GRAPHICS_GLYPH_ID) | GRAPHICS_DRAWABLE_T;
const bits GRAPHICS_ANIMATION_T = (bits(1) << GRAPHICS_ANIMATION_ID) | GRAPHICS_DRAWABLE_T;
const bits GRAPHICS_COLOR_T = (bits(1) << GRAPHICS_COLOR_ID) | OBJECT_T;