view plugins/crazychat/dog_lids.c @ 13358:708baf7cfee8

[gaim-migrate @ 15731] sf patch #1439082, from Sadrul Habib Chowdhury "It is not necessary to change the selection in the status box when you start typing. This removes a bug for account-boxes which always set the status of the account to what the global-status was set to instead of the account-box when you typed something in the account-box entry. (The selection was being updated when user started typing because the statusbox used to select and show transient status titles -- for a couple of days. So it was necessary to change to the corresponding primitive-status when user started typing)" committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 01 Mar 2006 05:57:36 +0000
parents ed017b9c532d
children
line wrap: on
line source

#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();
}