Mercurial > pidgin
view plugins/crazychat/face.h @ 13022:228b1f95e5b4
[gaim-migrate @ 15375]
Here's my "I'm staying up all night anyway so I might as well take a stab at
the connection error buttons" work on the connection error buttons. I left
Mark's comment in since I don't think this is finished. I also left a couple
warnings in place because I'm too tired to try to follow failure
characteristics and recovery mechanisms for the stuff I'm doing. It works for
me.
I saturated the prpl icons mostly because it made the error overlay stand out
better, but once I saw it I think it works well, and also fits well with our
use of saturation in other places to indicate offline. I'm currently using the
default status image blocked.png, if that's what we end up wanting to keep we
should put a copy of it somewhere else as pulling it from status/default is
silly.
I had originally tried to get the blocked circle to be larger than the prpl
icon, with the prpl icon centered, but couldn't come up with a good way to do
that given the gdk functions I had at hand. I'll probably give it a shot again
at some other point unless we decide we don't want it or someone else does it
before me.
I'm done rambling now, I'm tired.
committer: Tailor Script <tailor@pidgin.im>
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Mon, 23 Jan 2006 15:15:01 +0000 |
parents | ed017b9c532d |
children |
line wrap: on
line source
#ifndef __FACE_H__ #define __FACE_H__ #include <GL/gl.h> #include <GL/glu.h> #include "glm.h" #define NUM_PARTS 10 #define DOG_SHARK_CHANGE 5 #define CRAZY_COUNT 12 #define MAX_EYE_POP 1.3 #define EYE_TIME 120 #define MAX_FILE_LEN 64 #define ANGLE_INC 60 typedef enum {DOG, SHARK} KIND; typedef int BOOL; typedef enum {UP, DOWN, CONST} DIRECTION; typedef enum {NORMAL, CRAZY1, CRAZY2, CRAZY3} OUTPUT_MODE; struct face_struct { char* name; KIND my_kind; void* char_struct; GLint* mat_indeces; GLMmat_str* materials; OUTPUT_MODE my_mode; int eye_count, crazy_count; void (*draw_func)(struct face_struct*, GLfloat, GLfloat, BOOL, BOOL, GLfloat, DIRECTION, OUTPUT_MODE); float curr_z_angle, curr_eye_pop; }; typedef struct face_struct* FACE; typedef enum {APPENDAGE, HEAD, LIDS, LEFT_IRIS, RIGHT_IRIS, EYES, PUPIL, EXTRA1, EXTRA2, EXTRA3} PART; FACE init_face(KIND kind); FACE copy_face(FACE f); void draw_face(FACE face, GLfloat zrot, GLfloat yrot, BOOL left_eye, BOOL right_eye, GLfloat mouth_open, DIRECTION dir, OUTPUT_MODE mode); void change_materials(FACE face, int* mats, int num_change); #endif