EasyManuals Logo

HP j6700 Supplementary Guide

HP j6700
62 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #59 background imageLoading...
Page #59 background image
programming hints
OpenGL performance hints
Chapter 5 57
state change
OpenGL state setting commands can be classified into two different
categories. The first category is vertex-data commands. These are the
calls that can occur between a glBegin/glEnd pair:
glVertex
glColor
glIndex
glNormal
glEdgeFlag
glMaterial
glTexCoord
The processing of these calls is very fast. Restructuring a program to
eliminate some vertex data commands will not significantly improve
performance.
The second category is modal state-setting commands, or sometimes
referred to as “mode changes.” These are the commands that:
Turn on/off capabilities,
Change attribute settings for capabilities,
Define lights,
Change matrices,
•etc.
These calls cannot occur between a glBegin/glEnd pair. Examples of
such commands are:
glEnable(GL_LIGHTING);
glFogf(GL_FOG_MODE, GL_LINEAR);
glLightf(..);
glLoadMatrixf(..);
Changes to the modal state are significantly more expensive to process
than simple vertex-data commands. Also, application performance can be
optimized by grouping modal-state changes, and by minimizing the
number of modal-state changes:
OGLImp.book Page 57 Tuesday, February 14, 2006 9:15 AM

Table of Contents

Other manuals for HP j6700

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP j6700 and is the answer not in the manual?

HP j6700 Specifications

General IconGeneral
BrandHP
Modelj6700
CategoryDesktop
LanguageEnglish

Related product manuals