Graphics - Lecture 1 Part 2
Graphics - Lecture 1 Part 2
Lecture 2
Tooba Nasir
• GLU:
– The OpenGL Utility Library (GLU) provides many of the
modeling features, such as quadric surfaces and NURBS
curves and surfaces
– a standard part of every OpenGL implementation
InitializeAWindowPlease();
UpdateTheWindowAndCheckForEvents();
}
– The InitializeAWindowPlease()
• meant as a placeholder for window-system-specific routines, which are
generally not OpenGL calls
• Each state variable or mode has a default value, and at any point the
system can be queried for each variable’s current value
• use one of the six following commands to do this:
– glGetBooleanv()
– glGetDoublev()
– glGetFloatv()
– glGetIntegerv()
– glGetPointerv()
– glIsEnabled()
• Selecting one of these commands depends on what data type the
answer is to be given in
• Some state variables have a more specific query command
– (such as glGetLight*(), glGetError(), or glGetPolygonStipple()).
• The results of this stage are complete geometric primitives, which are
the transformed and clipped vertices with related color, depth, and
sometimes texture-coordinate values and guidelines for the
rasterization step.
• there are special pixel copy operations for copying data in the
framebuffer to other parts of the framebuffer or to the texture
memory. A single pass is made through the pixel-transfer operations
before the data is written to the
• texture memory or back to the framebuffer.