path:
root/
src/
model/
protein_geometry.c (
plain)
blob: dc71a4e51b58bddf0a347a27907efcf9d433db30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "protein_geometry.h"
#include "../view/exp004state0.h"
#include <GL/glut.h>
#define S exp004state0
void
protein_geometry (void)
{
/*
* Create a sphere and put it in a display list.
*/
GLUquadricObj *obj = gluNewQuadric ();
gluQuadricDrawStyle (obj, GLU_FILL);
glNewList (S.list_offset + PROTEIN_GEOMETRY, GL_COMPILE);
gluSphere (obj, 0.05, 20, 20);
glEndList ();
gluDeleteQuadric (obj);
return;
}
|