Download Quantum Data 881/882 SDK 1.0 Programmer`s Guide
Transcript
Setting up your development environment This section describe how to setup a computer to build images. Setting up your development environment involves creating a directory structure for your compiler, header files, implementation files and various executables on a WindowsNT/2000/XP Professional Pentium-based PC. To test compiled images, the development PC should be connected to the same LAN as the generators, or connected directly (using a patch cable) with a generator. To install the SDK: • Copy the \882\sdk folder from the Resource CD (provided with your generator) to the root directory on your C: drive. The following folders and files are installed. Folder Contents sdk\compiler GNU GCC ANSI C compatible compiler 2.7.2. Version 2.7.2 of this compiler is recommended for creating images for the 882 generator. This compiler can be installed on a Windows-based PC to produce binary files for execution on PowerPC processors. sdk\doc This user manual. sdk\examples Source code for selected standard images (PulseBar, Diamond, SMPTEBar, Quar tBox and Burst) provided with the generator. For descriptions of these images, see Chapter 3, “Image Examples.” Source code for sample image (sample.cpp) that demonstrates most of the graphics-related functions supported by the SDK. sdk\include Header files: • Gc.h includes CoreGc.h, Lutstep.h, MathLib.h and provides all the function definitions for initialization, image version control, video handling, transparency, screen filling, drawing primitives, drawing composites, object filling, patter n filling, text rendering, font management, 2-D drawing, 3-D drawing, window management, bit manipulation and various utilities. Your implementation file needs to include only the Gc.h header file, which includes all the necessary header files. • CoreGC.h provides class definitions, platform register access, and fixed point functions. • LutStep.h provides masks, color assignments and tables. • Mathlib.h provides math functions including math.h function wrappers. • Canvas.h provides variable class definitions for manipulating pr imatives. • Stdcolor.h provides color identifiers. • QD_types.h provides Quantum Data specific variable type definitions. • stdio.h. Using this version of stdio.h is recommended. Quantum Data 881/882 SDK 1.0 Pro gra mmer’s Guide (Rev. A2) 3