Featured Posts

Initializing graphics in C/C++ native compiler

Posted by admin | Posted in C/C++ Programming, computer graphics | Posted on 09-06-2009

Tags: , , , , , , , , , , , ,

1

One of the basic component need in order to initialize graphics in native C/C++ is the graphics.h. After that, you need to check if all the VGA drivers are exist and put it in the right path. Mostly can be found in “tc\bgi” in the C/C++ compiler, and then set the linker so that you can link the graphics.h library in the C/C++ Compiler.

If you already done these following procedure then you are now ready to have your first CG in C/C++. First is to follow these codes in order to initialize you CG (Computer Graphics).

#include <graphics.h>

#include <conio.h>

void main()

{

int gd = VGA, gm = VGAHI;

initgraph(&gd, &gm, “C:\\tc:\\bgi”);

getch();

}

Now, save your file and try to run. You will see black screen in a full screen. That is how are going to initialize you graphics. You can try different functions in order to draw graphics using native C/C++ Compiler.

Reblog this post [with Zemanta]

Computer Graphics in the subject CGA

Posted by admin | Posted in Academics | Posted on 08-06-2009

Tags: , , , , , , , ,

0

Computer graphics offers methods and techniques for generating and manipulating images on a computer.

The main branches of computer graphics are:

  1. Generative computer graphics
  2. Image processing
  3. Image analysis

(Source: Amarendra N Sinha and Arun D Udia, Computer Graphics, Tata McGraw-Hill Publishing Company)

Even though the subject is computer graphics application, still the students should learn the basic in computer graphics. CGA focuses only in the different application for implementation of computer graphics or shall we say tools in order to generate a computer graphics. But, how are we going to generate a precise computer graphics if we don’t know what is computer graphics? That is the main question for the topic CGA, but as we implement CG in different application we need also to teach the concept of computer graphics. Even though one semester is not enough, it’s still better than they create something with knowing what it is.

Good luck to all BSIT major in Multimedia and have fun while learning.

Reblog this post [with Zemanta]