Graphical Language
Graphical Language
Chapter 4
Graphical Software
Graphical software is used to create images as well as processing the images to make it realistic. There are two
types of graphics software.
1. General Programming Package
2. Special Purpose Application Package.
Standard graphics functions are defined as a set of specifications that is independent of any programming
language.
Direct X
Direct X is a set of development libraries for high performance games under windows.
It consists of:
a. Direct Draw: 2D graphics programming
b. Direct Sound: Allows mixing of sounds.
c. Direct Play: Allow multiplayer games to connect via modems, LANs etc.
d. Direct Input: Allow joysticks and handles input from various peripherals.
e. Direct 3D: 3D graphics programming.
1
Milan Chikanbanjar Computer Department Computer Graphics
2
Milan Chikanbanjar Computer Department Computer Graphics
Graphics software:
1. Paint program:
Paint program works with bit map images.
5. Animation:
Computer are used to create animation for use in various fields, including games, and movies composing to
allow game makers and film makers to add characters and objects to scenes that did not originally contain
them.
Error Diagnostics:
Programming errors often remain undetected until an attempt is made to compile the program once the compile
command has been issued. However, the presence of certain errors will become readily apparent; since these
errors will prevent the program from being compiled successful some particular common errors of these types are
declaring constants and variables improperly, a reference to an undeclared variable and incorrect punctuation.
Such errors are referred as syntactical error or grammatical error. Most version of C program will generate a
diagnostic message when a syntactical error has been detected (the compiler usually come to an interrupt when
this happens). These diagnostic messages are not always completely straight forward in their meaning, but they
are nevertheless helpful in identifying the nature and location of the error.
Logical Debugging:
Syntactical errors and certain types of logical errors will cause diagnostic messages to be generated when
compiling or executing a program. Errors of these types are easy to find and correct. Some types of logical errors
can be much more difficult to detect, however, since the output resulting from a logically incorrect program may
appear to be error free. Moreover, logical errors are often hard to find even when they are known to exit (as for
example, when the computed output is obviously incorrect).