Fujitsu Cremson Series User Manual page 14

Graphic controller family modular starterkit
Table of Contents

Advertisement

Now try to execute a very simple graphic function on your own – drawing
a line. To do so, enter the following commands :
>GdcColor GDC_RED
>GdcPrimType GDC_LINES
>GdcDrawVertex2D 0,0
>GdcDrawVertex2D 640,480
>GdcPrimEnd
You should now see a red line across the monitor. This example shows
how the APIcommander works : You can enter a set of commands
exactly the way you would have to when writing a program. This allows
to test and verify the correct graphic output before you copy these
commands in your source-code. However,
commands according to the C-syntax. If you would transfer the above
example to a C-file, it would have to look like this :
GdcColor(GDC_RED);
GdcPrimType(GDC_LINES);
GdcDrawVertex2D(INT_TO_FIXED(0), INT_TO_FIXED(0));
GdcDrawVertex2D(INT_TO_FIXED(640), INT_TO_FIXED(480));
GdcPrimEnd();
i
Compare the sequence-files and provided source-code examples for
details about the syntax differences. For example, see the
"APITemplate640480"-project and the sequence-file "setupVGA",
which are functionally identical.
you have to modify the
page -14-

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb91f361/2Mb86290aMb86291

Table of Contents