GRIM: Store ids instead of the pointers as lua's userdata objects.
Removed ObjectManager as it became useless.
This commit is contained in:
parent
74796a5de7
commit
1e868dd359
32 changed files with 525 additions and 535 deletions
|
@ -1051,7 +1051,7 @@ void GfxOpenGL::drawRectangle(PrimitiveObject *primitive) {
|
|||
int x2 = primitive->getP2().x;
|
||||
int y2 = primitive->getP2().y;
|
||||
|
||||
Color color = primitive->getColor();
|
||||
const Color &color = *primitive->getColor();
|
||||
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
glLoadIdentity();
|
||||
|
@ -1090,7 +1090,7 @@ void GfxOpenGL::drawLine(PrimitiveObject *primitive) {
|
|||
int x2 = primitive->getP2().x;
|
||||
int y2 = primitive->getP2().y;
|
||||
|
||||
Color color = primitive->getColor();
|
||||
const Color &color = *primitive->getColor();
|
||||
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
glLoadIdentity();
|
||||
|
@ -1126,7 +1126,7 @@ void GfxOpenGL::drawPolygon(PrimitiveObject *primitive) {
|
|||
int x4 = primitive->getP4().x;
|
||||
int y4 = primitive->getP4().y;
|
||||
|
||||
Color color = primitive->getColor();
|
||||
const Color &color = *primitive->getColor();
|
||||
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
glLoadIdentity();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue