Changes between Version 1 and Version 2 of GraphicsApiOld


Ignore:
Timestamp:
Apr 21, 2007, 9:23:15 AM (17 years ago)
Author:
KSMarksPsych
Comment:

Changed italics to monospace. Added space after RGB to prevent emoticon from showing up.

Legend:

Unmodified
Added
Removed
Modified
  • GraphicsApiOld

    v1 v2  
    1818}}}
    1919
    20 where worker() is the main function of your application. Your application must supply rendering and input-handling functions (see below).
     20where `worker()` is the main function of your application. Your application must supply rendering and input-handling functions (see below).
    2121
    2222These functions creates a '''worker thread''' that runs the main application function. The original thread becomes the '''graphics thread''', which handles GUI events and does rendering.
     
    3636}}}
    3737
    38 This will be called periodically in the graphics thread. It should generate the current graphic. ''xs'' and ''ys'' are the X and Y sizes of the window, and ''time_of_day'' is the relative time in seconds. Applications that don't do graphics must also supply a dummy ''app_graphics_render()'' to link with the API.
     38This will be called periodically in the graphics thread. It should generate the current graphic. `xs` and `ys` are the X and Y sizes of the window, and `time_of_day` is the relative time in seconds. Applications that don't do graphics must also supply a dummy `app_graphics_render()` to link with the API.
    3939
    4040{{{
     
    111111    Represents a set of randomly-generated stars that move forwards or backwards in 3 dimensions.
    112112TEXTURE_DESC
    113     Represents an image (JPEG, Targa, BMP, PNG, or RGB) displayed in 3 dimensions.
     113    Represents an image (JPEG, Targa, BMP, PNG, or RGB ) displayed in 3 dimensions.
    114114
    115115The file api/txf_util.C has support functions from drawing nice-looking 3D text.