diff plugins/crazychat/dog_lids.c @ 11218:ed017b9c532d

[gaim-migrate @ 13350] crazychat commit, first one. committer: Tailor Script <tailor@pidgin.im>
author Charlie Stockman <chuckleberry>
date Tue, 09 Aug 2005 07:10:23 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/plugins/crazychat/dog_lids.c	Tue Aug 09 07:10:23 2005 +0000
@@ -0,0 +1,48 @@
+#include
+
+#include "lid1.h"
+#include "lid2.h"
+#include "lid3.h"
+#include "lid4.h"
+#include "lid5.h"
+#include "lid6.h"
+#include "lid8.h"
+#include "lid9.h"
+#include "lid10.h"
+
+#define NUM_LIDS 9
+
+GLint lidLists[NUM_LIDS];
+
+void initLids(){
+	GLint test;
+	int i;
+	
+	GLint[0]=Gen3DObjectListLid1();
+	GLint[1]=Gen3DObjectListLid2();
+	GLint[2]=Gen3DObjectListLid3();
+	GLint[3]=Gen3DObjectListLid4();
+	GLint[4]=Gen3DObjectListLid5();
+	GLint[5]=Gen3DObjectListLid6();
+	GLint[6]=Gen3DObjectListLid8();
+	GLint[7]=Gen3DObjectListLid9();
+	GLint[8]=Gen3DObjectListLid10();
+
+};
+
+void drawLids(int left, right) {
+	//draw left
+	GLfloat offset = .5;
+
+	glPushMatrix();
+	glTranslatef(offset, 0, 0);
+	glCallList(lidLists[left]);
+	glPopMatrix();
+
+	//draw right
+	glPushMatrix();
+	glTranslatef(-offset, 0, 0);
+	glScalef(-1, 1, 1);
+	glCallList(lidLists[right]);
+	glPopMatrix();
+}
\ No newline at end of file