aboutsummaryrefslogtreecommitdiff
path: root/src/shapes.c
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2014-03-16 20:59:02 +0100
committerraysan5 <raysan5@gmail.com>2014-03-16 20:59:02 +0100
commita68818e320cb90e2bbc772f65343cb79b78770ae (patch)
tree2e823b076a49c002645388db66cc72556536276a /src/shapes.c
parent0a71a92eeb6cd05631c268005758bb9d4066f659 (diff)
downloadraylib-1.0.6.tar.gz
raylib-1.0.6.zip
Update to version 1.0.61.0.6
Check CHANGELOG for the list of changes in this release!
Diffstat (limited to 'src/shapes.c')
-rw-r--r--src/shapes.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/shapes.c b/src/shapes.c
index b033cde9..07a73cad 100644
--- a/src/shapes.c
+++ b/src/shapes.c
@@ -61,8 +61,16 @@ void DrawPixel(int posX, int posY, Color color)
glColor4ub(color.r, color.g, color.b, color.a);
glVertex2i(posX, posY);
glEnd();
-
- // NOTE: Alternative method to draw a pixel (point)
+
+ // NOTE1: Alternative method to draw a pixel (GL_LINES)
+/*
+ glBegin(GL_LINES);
+ glColor4ub(color.r, color.g, color.b, color.a);
+ glVertex2i(posX, posY);
+ glVertex2i(posX+1, posY+1);
+ glEnd();
+*/
+ // NOTE2: Alternative method to draw a pixel (glPoint())
/*
glEnable(GL_POINT_SMOOTH);
glHint(GL_POINT_SMOOTH_HINT, GL_NICEST); // Deprecated on OGL 3.0
@@ -426,7 +434,7 @@ Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2)
if (rec1.x <= rec2.x)
{
if (rec1.y <= rec2.y)
- {
+ {
retRec.x = rec2.x;
retRec.y = rec2.y;
retRec.width = rec1.width - dxx;
@@ -443,7 +451,7 @@ Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2)
else
{
if (rec1.y <= rec2.y)
- {
+ {
retRec.x = rec1.x;
retRec.y = rec2.y;
retRec.width = rec2.width - dxx;