Exemple #1
0
// draw the entity
void Entity::Render() {
	buildMatrixAndSetUp();
	glMatrixMode(GL_MODELVIEW);
	glPushMatrix();
	glMultMatrixf(matrix.ml);
	sprite.Draw(scale_x, scale_y);
	glPopMatrix();
}
Exemple #2
0
// draw the entity
void Entity::Render() {
	buildMatrixAndSetUp();
	glMatrixMode(GL_MODELVIEW);
	glPushMatrix();
	glMultMatrixf(matrix.ml);
	// draw the glow first if theres a glow
	if (glowing){
		glow.Draw(scale_x, scale_y);
	}
	// draw sprite over the glow
	sprite.Draw(scale_x, scale_y);
	glPopMatrix();
}