// Genesaver: copyright 2003 Sam Stafford. #include <GL/glut.h> #include "globals.h" #include "Thing.h" #include "Plant.h" Plant::Plant(void) { prev = NULL; next = NULL; energy = P_E; } Plant::~Plant(void) { } void Plant::Render() { SetColor( P_C ); glBegin( GL_POLYGON ); glVertex2f( x + P_R, y + P_R * 0.5 ); glVertex2f( x + P_R, y - P_R * 0.5 ); glVertex2f( x + P_R * 0.5, y - P_R ); glVertex2f( x - P_R * 0.5, y - P_R ); glVertex2f( x - P_R, y - P_R * 0.5 ); glVertex2f( x - P_R, y + P_R * 0.5 ); glVertex2f( x - P_R * 0.5, y + P_R ); glVertex2f( x + P_R * 0.5, y + P_R ); glEnd(); }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 5393 | Sam Stafford |
Integrate in Marc's porting changes, and merge my own relevant winmain.cpp changes into main.cpp. (Thanks Marc!!!) |
||
#1 | 3052 | Sam Stafford |
Add Genesaver to the Public Depot. It's not in any way Perforce-related, but it does share a bit of code with Jamgraph, and it feels strange to have an open-source project that's not in the PD. |