| Automatically Generated GTC Python Bindings Documentation |
| Function | clear |
| Arguments | gtcDBBuf buf int mask |
| Return value | void |
| Documentation | send a glClear to the client |
| Referenced by | N/A |
| Function | color |
| Arguments | gtcDBBuf buf char_array colors |
| Return value | void |
| Documentation | This function sends a message to a client through the gtcDBBuf buf. sends a glColor to the client. |
| Referenced by | N/A |
| Function | colors |
| Arguments | gtcDBBuf buf int size char_array C |
| Return value | void |
| Documentation | send a gtcColorPointer to the client |
| Referenced by | N/A |
| Function | combine |
| Arguments | float_array a float_array b |
| Return value | float_array |
| Documentation | Returns the product of a and b (a*b) as matrices. |
| Referenced by | N/A |
| Function | depth_func |
| Arguments | gtcDBBuf buf int func |
| Return value | void |
| Documentation | glDepthFunc sent to the client |
| Referenced by | N/A |
| Function | disable |
| Arguments | gtcDBBuf buf int cap |
| Return value | void |
| Documentation | glDisable sent to the client |
| Referenced by | N/A |
| Function | disable_client_state |
| Arguments | gtcDBBuf buf int state |
| Return value | void |
| Documentation | send a glDisableClientState to the client |
| Referenced by | N/A |
| Function | draw_elements |
| Arguments | gtcDBBuf buf int mode int_array index |
| Return value | void |
| Documentation | send a glDrawElements to the client |
| Referenced by | N/A |
| Function | draw_mesh |
| Arguments | gtcDBBuf buf gtcSimpleMesh mesh |
| Return value | void |
| Documentation | Draws the mesh using vertex arrays and such. |
| Referenced by | gtcSimpleMesh |
| Function | enable |
| Arguments | gtcDBBuf buf int cap |
| Return value | void |
| Documentation | glEnable sent to the client |
| Referenced by | N/A |
| Function | enable_client_state |
| Arguments | gtcDBBuf buf int state |
| Return value | void |
| Documentation | send a glEnableClientState to the client |
| Referenced by | N/A |
| Function | gotoxy |
| Arguments | gtcDBBuf buf int x int y |
| Return value | void |
| Documentation | This function sends a message to a client through the gtcDBBuf buf. Send the raster position to (x,y). This is done using a combination of glRasterPos and glBitmap (read the manpage of the latter to learn why.) |
| Referenced by | send_layout |
| Type | gtcDBBuf |
| Attributes | none (opaque object/black box) |
| Documentation | This opaque object contains a buffer of bits used to communicate with clients. See new_buf. |
| Referenced by | clear | color | colors | depth_func | disable | disable_client_state | draw_elements | draw_mesh | enable | enable_client_state | gotoxy | light | lightv | load_identity | load_matrix | new_buf | normals | ortho | perspective | send_font_size | send_layout | server_send | set_current_font | swapbuffers | tex_coords | tex_env_i | text | texture_image_2d | vertices | viewport |
| Type | gtcServer |
| Attributes | double default_sec_per_byte int verbose |
| Documentation | A nearly opaque object to represent a server object. The field default_sec_per_byte can be set to reflect the default bandwidth allocated to each client. The verbose field can be used to get some output on stdout. See server_new and server_get_message. |
| Referenced by | server_get_message | server_new | server_send |
| Type | gtcServerMessage |
| Attributes | int t int op int x1 int x2 int x3 int x4 int client |
| Documentation | This almost transparent object is what you get when a client sends you a message. The t field tells you what kind of message it is (one of gtcNewClient, gtcDeadClient, gtcReceivedPacket, gtcReadyForSending or gtcTimeout.) gtcNewClient indicates that a new client has connected; the client field will be used to identify that client from now on. Similarly, gtcDeadClient indicates that the client is now gone. After receiving a gtcDeadClient message, the client id will be recycled by the server and reused on subsequently connecting clients. gtcReadyForSending indicates when would be appropriate to send a new packet to this client, given its allocated bandwidth. gtcTimeout indicates that no events happened before the timeout ran out. gtcReceivedPacket is more interesting. op will be one of gtcKeyPress, gtcKeyRelease, gtcKeyRepeat, gtcConfigureNotify, gtcButtonPress, gtcButtonRelease. gtcKeyPress, gtcKeyRelease and gtcKeyRepeat indicate the appropriate keyboard event on the client. Then, the field x1 holds the keysym for the key, (x2,x3) is the location of the mouse pointer at key event x4 is the time at which the event took place. gtcConfigureNotify indicates that the window on the client has changed shape. (x1,x2) is (width,height). gtcButtonPress and gtcButtonRelease indicate that a mouse button event occured. x1 has the button number, (x2,x3) has the position on the screen, x4 has the time. See also server_get_message |
| Referenced by | server_get_message |
| Type | gtcSimpleMesh |
| Attributes | none (opaque object/black box) |
| Documentation | Opaque object for a mesh with normals and texture coordinates. See mesh_load and draw_mesh. |
| Referenced by | draw_mesh | mesh_load |
| Type | gtcTexture |
| Attributes | int w int h int type |
| Documentation | Semi-opaque object to conatain a texture. Size in pixels is (w,h) and the underlying type is also given. See texture_load and texture_image_2d |
| Referenced by | texture_image_2d | texture_load |
| Function | gtc_debug_level |
| Arguments | int level |
| Return value | void |
| Documentation | Sets the debug level. The debug level is a bitfield, so if you want maximum debug output (a LOT!), set it to 0xffffffff. You can play around with bit values to get less information. |
| Referenced by | N/A |
| Function | gtc_time |
| Arguments | none |
| Return value | double |
| Documentation | Returns the current time in seconds since 1970 or something. |
| Referenced by | N/A |
| Function | identity |
| Arguments | none |
| Return value | float_array |
| Documentation | Returns the identity matrix |
| Referenced by | N/A |
| Function | invert |
| Arguments | float_array a |
| Return value | float_array |
| Documentation | Returns the matrix inverse of a. |
| Referenced by | N/A |
| Function | light |
| Arguments | gtcDBBuf buf int light int pname float param |
| Return value | void |
| Documentation | send a glLightf to the client |
| Referenced by | N/A |
| Function | lightv |
| Arguments | gtcDBBuf buf int light int pname float_array params |
| Return value | void |
| Documentation | send a glLightfv to the client |
| Referenced by | N/A |
| Function | load_identity |
| Arguments | gtcDBBuf buf |
| Return value | void |
| Documentation | glLoadIdentity sent to the client |
| Referenced by | N/A |
| Function | load_matrix |
| Arguments | gtcDBBuf buf float_array m |
| Return value | void |
| Documentation | send a glLoadMatrix to the client. |
| Referenced by | N/A |
| Function | mesh_load |
| Arguments | string filename |
| Return value | gtcSimpleMesh |
| Documentation | Loads a mesh from a file. The file should be a 3d Studio .ase file. |
| Referenced by | gtcSimpleMesh |
| Function | new_buf |
| Arguments | none |
| Return value | gtcDBBuf |
| Documentation | Create a new bit buffer for sending packets to clients. |
| Referenced by | gtcDBBuf |
| Function | normals |
| Arguments | gtcDBBuf buf float_array N |
| Return value | void |
| Documentation | send a glNormalPointer to the client |
| Referenced by | N/A |
| Function | ortho |
| Arguments | gtcDBBuf buf float left float right float bottom float top float zNear float zFar |
| Return value | void |
| Documentation | send a glOrtho to the client |
| Referenced by | N/A |
| Function | perspective |
| Arguments | gtcDBBuf buf float fovy float aspect float zNear float zFar |
| Return value | void |
| Documentation | send a gluPerspective to the client. |
| Referenced by | N/A |
| Function | rot |
| Arguments | float x float y float z float theta |
| Return value | float_array |
| Documentation | Returns a rotation matrix about (x,y,z) by angle theta. |
| Referenced by | N/A |
| Function | send_font_size |
| Arguments | gtcDBBuf buf unsigned pixels_x unsigned pixels_y |
| Return value | void |
| Documentation | This function sends a message to a client through the gtcDBBuf buf. sets the current client-side font size. |
| Referenced by | N/A |
| Function | send_layout |
| Arguments | gtcDBBuf buf string text int x int y unsigned w unsigned dy unsigned mode |
| Return value | void |
| Documentation | This function sends a message to a client through the gtcDBBuf buf. sends text to the client for layout. The text will be written at position (x,y), with a width of w pixels. Each line will be dy pixels below the preceding line. mode can be any one of gtcLeft, gtcRight, gtcCenter or gtcJustify and specifies the alignment of paragraphs. Raster position after this call is completely undefined(really!). This uses glBitmap and gotoxy so the same caveats as in gotoxy and text apply. |
| Referenced by | N/A |
| Function | server_get_message |
| Arguments | gtcServer server double timeout |
| Return value | gtcServerMessage |
| Documentation | Get the next message from a server object. You can give a timeout, if you do not want to wait forever. |
| Referenced by | gtcServer | gtcServerMessage | server_new |
| Function | server_new |
| Arguments | int port int verbose float sec_per_byte |
| Return value | gtcServer |
| Documentation | Create a new server object. This object will be used to receive connections from clients and communicate with them. You poll this server with server_get_message to get events from clients. |
| Referenced by | gtcServer |
| Function | server_send |
| Arguments | gtcServer server int client gtcDBBuf buf |
| Return value | void |
| Documentation | Send a bit buffer to a client. |
| Referenced by | N/A |
| Function | set_current_font |
| Arguments | gtcDBBuf buf unsigned id |
| Return value | void |
| Documentation | This function sends a message to a client through the gtcDBBuf buf. set client-side current font. For id, try the constants such as gtcCharter or gtcLuciduxSans. |
| Referenced by | N/A |
| Function | string_xsize |
| Arguments | int fontid string s unsigned pixels_x unsigned pixels_y |
| Return value | int |
| Documentation | Measures the width, in pixels, of a given string, in the specified font and pixel size. |
| Referenced by | N/A |
| Function | swapbuffers |
| Arguments | gtcDBBuf buf |
| Return value | void |
| Documentation | send a glXSwapBuffers to the client |
| Referenced by | N/A |
| Function | tex_coords |
| Arguments | gtcDBBuf buf float_array T |
| Return value | void |
| Documentation | send a glTexCoordPointer to the client |
| Referenced by | N/A |
| Function | tex_env_i |
| Arguments | gtcDBBuf buf int mode |
| Return value | void |
| Documentation | glTexEnvi sent to the client |
| Referenced by | N/A |
| Function | text |
| Arguments | gtcDBBuf buf string text |
| Return value | void |
| Documentation | This function sends a message to a client through the gtcDBBuf buf. Writes a string of text at the current raster position. glBitmap is used to render the text, so you have to set up the environment properly. For instance, you'd probably want to disable textures and set the color. |
| Referenced by | send_layout |
| Function | text_linecount |
| Arguments | int fontid string text int w unsigned pixels_x unsigned pixels_y |
| Return value | void |
| Documentation | Count the number of lines used to lay out a string of text given the width w in pixels and the pixel size of the font. |
| Referenced by | N/A |
| Function | texture_image_2d |
| Arguments | gtcDBBuf buf gtcTexture tex int level int border |
| Return value | void |
| Documentation | glTextureImage2d sent to the client, loading the texture object specified. See also texture_load. |
| Referenced by | gtcTexture |
| Function | texture_load |
| Arguments | string filename |
| Return value | gtcTexture |
| Documentation | Loads a texture object from a file. The file should be a png file. |
| Referenced by | gtcTexture | texture_image_2d |
| Function | vertices |
| Arguments | gtcDBBuf buf float_array V |
| Return value | void |
| Documentation | send a glVertexPointer to the client |
| Referenced by | N/A |
| Function | viewport |
| Arguments | gtcDBBuf buf int x int y int w int h |
| Return value | void |
| Documentation | send a glViewport to the client |
| Referenced by | N/A |
| Function | xlat |
| Arguments | float x float y float z |
| Return value | float_array |
| Documentation | Returns a translation matrix by (x,y,z). |
| Referenced by | N/A |
| Constant | GTC_ALPHA |
| Constant | GTC_ALPHA12 |
| Constant | GTC_ALPHA16 |
| Constant | GTC_ALPHA4 |
| Constant | GTC_ALPHA8 |
| Constant | GTC_ALPHA_TEST |
| Constant | GTC_ALWAYS |
| Constant | GTC_AMBIENT |
| Constant | GTC_AUTO_NORMAL |
| Constant | GTC_BITMAP |
| Constant | GTC_BLEND |
| Constant | GTC_BYTE |
| Constant | GTC_CLIP_PLANE0 |
| Constant | GTC_CLIP_PLANE1 |
| Constant | GTC_CLIP_PLANE2 |
| Constant | GTC_CLIP_PLANE3 |
| Constant | GTC_CLIP_PLANE4 |
| Constant | GTC_CLIP_PLANE5 |
| Constant | GTC_COLOR_ARRAY |
| Constant | GTC_COLOR_LOGIC_OP |
| Constant | GTC_COLOR_MATERIAL |
| Constant | GTC_CONSTANT_ATTENUATION |
| Constant | GTC_CULL_FACE |
| Constant | GTC_DECAL |
| Constant | GTC_DEPTH_TEST |
| Constant | GTC_DIFFUSE |
| Constant | GTC_DITHER |
| Constant | GTC_EDGE_FLAG_ARRAY |
| Constant | GTC_EQUAL |
| Constant | GTC_FLOAT |
| Constant | GTC_FOG |
| Constant | GTC_GEQUAL |
| Constant | GTC_GREATER |
| Constant | GTC_INDEX_ARRAY |
| Constant | GTC_INDEX_LOGIC_OP |
| Constant | GTC_INT |
| Constant | GTC_INTENSITY |
| Constant | GTC_INTENSITY12 |
| Constant | GTC_INTENSITY16 |
| Constant | GTC_INTENSITY4 |
| Constant | GTC_INTENSITY8 |
| Constant | GTC_INTERNALFORMAT_1 |
| Constant | GTC_INTERNALFORMAT_2 |
| Constant | GTC_INTERNALFORMAT_3 |
| Constant | GTC_INTERNALFORMAT_4 |
| Constant | GTC_LEQUAL |
| Constant | GTC_LESS |
| Constant | GTC_LIGHT0 |
| Constant | GTC_LIGHT1 |
| Constant | GTC_LIGHT2 |
| Constant | GTC_LIGHT3 |
| Constant | GTC_LIGHT4 |
| Constant | GTC_LIGHT5 |
| Constant | GTC_LIGHT6 |
| Constant | GTC_LIGHT7 |
| Constant | GTC_LIGHTING |
| Constant | GTC_LINEAR_ATTENUATION |
| Constant | GTC_LINES |
| Constant | GTC_LINE_LOOP |
| Constant | GTC_LINE_SMOOTH |
| Constant | GTC_LINE_STIPPLE |
| Constant | GTC_LINE_STRIP |
| Constant | GTC_LUMINANCE |
| Constant | GTC_LUMINANCE12 |
| Constant | GTC_LUMINANCE12_ALPHA12 |
| Constant | GTC_LUMINANCE12_ALPHA4 |
| Constant | GTC_LUMINANCE16 |
| Constant | GTC_LUMINANCE16_ALPHA16 |
| Constant | GTC_LUMINANCE4 |
| Constant | GTC_LUMINANCE4_ALPHA4 |
| Constant | GTC_LUMINANCE6_ALPHA2 |
| Constant | GTC_LUMINANCE8 |
| Constant | GTC_LUMINANCE8_ALPHA8 |
| Constant | GTC_LUMINANCE_ALPHA |
| Constant | GTC_MAP1_COLOR_4 |
| Constant | GTC_MAP1_INDEX |
| Constant | GTC_MAP1_NORMAL |
| Constant | GTC_MAP1_TEXTURE_COORD_1 |
| Constant | GTC_MAP1_TEXTURE_COORD_2 |
| Constant | GTC_MAP1_TEXTURE_COORD_3 |
| Constant | GTC_MAP1_TEXTURE_COORD_4 |
| Constant | GTC_MAP1_VERTEX_3 |
| Constant | GTC_MAP1_VERTEX_4 |
| Constant | GTC_MAP2_COLOR_4 |
| Constant | GTC_MAP2_INDEX |
| Constant | GTC_MAP2_NORMAL |
| Constant | GTC_MAP2_TEXTURE_COORD_1 |
| Constant | GTC_MAP2_TEXTURE_COORD_2 |
| Constant | GTC_MAP2_TEXTURE_COORD_3 |
| Constant | GTC_MAP2_TEXTURE_COORD_4 |
| Constant | GTC_MAP2_VERTEX_3 |
| Constant | GTC_MAP2_VERTEX_4 |
| Constant | GTC_MODULATE |
| Constant | GTC_NEVER |
| Constant | GTC_NORMALIZE |
| Constant | GTC_NORMAL_ARRAY |
| Constant | GTC_NOTEQUAL |
| Constant | GTC_POINTS |
| Constant | GTC_POINT_SMOOTH |
| Constant | GTC_POLYGON |
| Constant | GTC_POLYGON_OFFSET_FILL |
| Constant | GTC_POLYGON_OFFSET_LINE |
| Constant | GTC_POLYGON_OFFSET_POINT |
| Constant | GTC_POLYGON_SMOOTH |
| Constant | GTC_POLYGON_STIPPLE |
| Constant | GTC_POSITION |
| Constant | GTC_QUADRATIC_ATTENUATION |
| Constant | GTC_QUADS |
| Constant | GTC_QUAD_STRIP |
| Constant | GTC_R3_G3_B2 |
| Constant | GTC_REPLACE |
| Constant | GTC_RGB |
| Constant | GTC_RGB10 |
| Constant | GTC_RGB10_A2 |
| Constant | GTC_RGB12 |
| Constant | GTC_RGB16 |
| Constant | GTC_RGB4 |
| Constant | GTC_RGB5 |
| Constant | GTC_RGB5_A1 |
| Constant | GTC_RGB8 |
| Constant | GTC_RGBA |
| Constant | GTC_RGBA12 |
| Constant | GTC_RGBA16 |
| Constant | GTC_RGBA2 |
| Constant | GTC_RGBA4 |
| Constant | GTC_RGBA8 |
| Constant | GTC_SCISSOR_TEST |
| Constant | GTC_SHORT |
| Constant | GTC_SPECULAR |
| Constant | GTC_SPOT_CUTOFF |
| Constant | GTC_SPOT_DIRECTION |
| Constant | GTC_SPOT_EXPONENT |
| Constant | GTC_STENCIL_TEST |
| Constant | GTC_TEXTURE_1D |
| Constant | GTC_TEXTURE_2D |
| Constant | GTC_TEXTURE_COORD_ARRAY |
| Constant | GTC_TEXTURE_GEN_Q |
| Constant | GTC_TEXTURE_GEN_R |
| Constant | GTC_TEXTURE_GEN_S |
| Constant | GTC_TEXTURE_GEN_T |
| Constant | GTC_TRIANGLES |
| Constant | GTC_TRIANGLE_FAN |
| Constant | GTC_TRIANGLE_STRIP |
| Constant | GTC_UNSIGNED_BYTE |
| Constant | GTC_UNSIGNED_INT |
| Constant | GTC_UNSIGNED_SHORT |
| Constant | GTC_VERTEX_ARRAY |
| Constant | gtcButtonPress |
| Constant | gtcButtonRelease |
| Constant | gtcCenter |
| Constant | gtcCharter |
| Constant | gtcCharterBold |
| Constant | gtcCharterBoldItalic |
| Constant | gtcCharterItalic |
| Constant | gtcColorBufferBit |
| Constant | gtcConfigureNotify |
| Constant | gtcCourier |
| Constant | gtcCourierBold |
| Constant | gtcCourierBoldItalic |
| Constant | gtcCourierItalic |
| Constant | gtcDeadClient |
| Constant | gtcDepthBufferBit |
| Constant | gtcJustify |
| Constant | gtcKeyPress |
| Constant | gtcKeyRelease |
| Constant | gtcKeyRepeat |
| Constant | gtcLeft |
| Constant | gtcLuciduxSans |
| Constant | gtcLuciduxSansOblique |
| Constant | gtcNewClient |
| Constant | gtcReadyForSending |
| Constant | gtcReceivedPacket |
| Constant | gtcRight |
| Constant | gtcStencilBufferBit |
| Constant | gtcTimeout |