Tuesday, April 15, 2008

Glut and Freeglut

GLUT which is short form for OpenGL Utility Tool is a library of utilities for OpenGL programs, which primarily perform system-level I/O with the host operating system. Functions include window definition, window control, and monitoring of keyboard and mouse input. GLUT even has some limited support for creating pop-up menus.
Some of GLUT's original design decisions made it hard for programmers to perform desired tasks. This led many to create non-canon patches and extensions to GLUT.

There are three more notable limitations of
GLUT library.

  1. The library requires programmers to call glutmainloop(); a function which never returns. This makes it hard for programmers to integrate GLUT into a program or library which wishes to have control of its own event loop.
  2. The fact that glutmainloop() never returns also means that a GLUT program cannot exit the event loop.
  3. The library terminates the process when the window is closed; for some applications this may not be desired.

Freeglut is an open source alternative to the
GLUT library. Freeglut is created to improve the toolkit and hence replacing the GLUT. It only has a few differences about Freeglut and GLUT.

Freeglut fixes the glutmainloop() bug by introducing a new function called glutleavemainloop().

Some other more bugs are also fix in
Freeglut, and people now use Freeglut instead of GLUT as it fixes almost all the bugs in GLUT thus Freeglut is now distributed instead of GLUT.


Thursday, November 1, 2007

Week 2 Practical

In week 2 practical, i learn how to use and make my first OpenGL work. It was a succcess but its kind of hard to understand the codings. I learned how to make graphics out of complicated codes and managed to come out with a few nice graphics. The blur screen will make the whole graphic lag so most of the people prefer to take it out. The wave and the meltdown was the nicest part. Everybody in the class is playing with the numbers of color of the wave and meltdown codes and comes out with very nice colors. Some even create a meltdown that is going in the up direction.

Thursday, October 18, 2007

Part 3

Part 3
I like to play games, console games, PC games are my favourites. For PC games, MMO and 1st person shooters are my favourites. And for console games for PS, RPGs are my favourites.
Review of a Game
Title: Assasin's Creed
Platform: PS3, PC, Xbox 360
Genre: Action RPG
Developer: Ubisoft
Product Model Year: 2007
Game Requirements: PS3, Xbox 360, PC
Description of Game: You're an assasin and your mission is to assasinate the people that you're told to do so.
Game play: It is a 1 player mode game and u control a assasin to assasinate the targets.
Graphics: PS3, Xbox 360, PC GeForce 7 series and above.
Sound: PS3, Xbox 360, PC Creative Sound card
Conclusion: the genre of the game is 1 of my favourite game and the graphics and game play rocks.

Part 2

Part 2
Things i've learnt in Mathematics 1. In secondary school, when my teacher start to teach us vectors and matrixes, i'm totally lost as my maths are not very good. Vectors are about 2 points, A and B, and the route to go to this 2 points are called the vector. But when it is 3D, it's much harder than the ones i've learnt in secondary school. Matrix are about determinants, 2 by 2 matrix and 3 by 3 matrix or even more. Matrix can be up to 10 by 10 and it will be harder and more complicated as the number of matrix increase.

Intro and Part 1

HI,
Today is my first time blogging. Pardon me for being a noob.

Part 1
This week we attended Advance C++ programming Lab Practical.
During the lesson, our lecturer via tutor, My Ng How Seng, asked us to do at least 5 questions in order to recap our C++ codings skill. At first i struggled quite a bit as i can't remember some of the codes. But im remembering them now as time goes by and by asking our tutor and my friends.