#ifndef __FRAME_AND_CONNECTOR_HXX__ #define __FRAME_AND_CONNECTOR_HXX__ #include class TubeFrame { static GLuint tex[3]; void genTextures() ; void renderquad(float x0, float y0, float x1, float y1, float s0, float t0, float s1, float t1); void rendertube_h(float x0, float y0, float x1, float y1, float w, float s0, float t0, float s1, float t1, float s); void rendertube_v(float x0, float y0, float x1, float y1, float w, float s0, float t0, float s1, float t1, float s); void rendercorner(float x0, float y0, float x1, float y1, float w, float s0, float t0, float s1, float t1, float c); public: float lights[3][3]; TubeFrame() ; void render(float x0, float y0, float x1, float y1, float w) ; }; class TubeConnector { static GLuint tex[4]; float lights[3][3]; void genTextures() ; public: TubeConnector() ; void render(float x0, float y0, float w0, float x1, float y1, float w1) ; }; #endif