Pages

Your Ad Here

This Blog is not to read or go through

because, I have never been such a mess


Search the blog instead

Showing posts with label OpenGL. Show all posts
Showing posts with label OpenGL. Show all posts

Thursday, December 13, 2007

Segmentation Fault (core dumped)

I have been working on opengl environment for my graphics project and I frequently get error messages like segmentation fault. When I went through some of the googlings I concluded that one of the reason to report such type of error messages is the unauthorised access to the memory location. That is trying to access the memory which wasn't allowed to do that.

Saturday, December 8, 2007

Compiling opengl with libraries solved

g++ rect.cc -o rect -lGLU -lGL -lglut

OpenGL 2.1 Reference Page Official

OpenGL 2.1 Reference Pages





A
glAccum
glActiveTexture
glAlphaFunc
glAreTexturesResident
glArrayElement
glAttachShader
Top


B
glBegin
glBeginQuery
glBindAttribLocation
glBindBuffer
glBindTexture
glBitmap
glBlendColor
glBlendEquation
glBlendEquationSeparate
glBlendFunc
glBlendFuncSeparate
glBufferData
glBufferSubData
Top


C
glCallList
glCallLists
glClear
glClearAccum
glClearColor
glClearDepth
glClearIndex
glClearStencil
glClientActiveTexture
glClipPlane
glColor
glColorMask
glColorMaterial
glColorPointer
glColorSubTable
glColorTable
glColorTableParameter
glCompileShader
glCompressedTexImage1D
glCompressedTexImage2D
glCompressedTexImage3D
glCompressedTexSubImage1D
glCompressedTexSubImage2D
glCompressedTexSubImage3D
glConvolutionFilter1D
glConvolutionFilter2D
glConvolutionParameter
glCopyColorSubTable
glCopyColorTable
glCopyConvolutionFilter1D
glCopyConvolutionFilter2D
glCopyPixels
glCopyTexImage1D
glCopyTexImage2D
glCopyTexSubImage1D
glCopyTexSubImage2D
glCopyTexSubImage3D
glCreateProgram
glCreateShader
glCullFace
Top


D
glDeleteBuffers
glDeleteLists
glDeleteProgram
glDeleteQueries
glDeleteShader
glDeleteTextures
glDepthFunc
glDepthMask
glDepthRange
glDetachShader
glDisable
glDisableClientState
glDisableVertexAttribArray
glDrawArrays
glDrawBuffer
glDrawBuffers
glDrawElements
glDrawPixels
glDrawRangeElements
Top


E
glEdgeFlag
glEdgeFlagPointer
glEnable
glEnableClientState
glEnableVertexAttribArray
glEnd
glEndList
glEndQuery
glEvalCoord
glEvalMesh
glEvalPoint
Top


F
glFeedbackBuffer
glFinish
glFlush
glFog
glFogCoord
glFogCoordPointer
glFrontFace
glFrustum
Top


G
glGenBuffers
glGenLists
glGenQueries
glGenTextures
glGet
glGetActiveAttrib
glGetActiveUniform
glGetAttachedShaders
glGetAttribLocation
glGetBufferParameteriv
glGetBufferPointerv
glGetBufferSubData
glGetClipPlane
glGetColorTable
glGetColorTableParameter
glGetCompressedTexImage
glGetConvolutionFilter
glGetConvolutionParameter
glGetError
glGetHistogram
glGetHistogramParameter
glGetLight
glGetMap
glGetMaterial
glGetMinmax
glGetMinmaxParameter
glGetPixelMap
glGetPointerv
glGetPolygonStipple
glGetProgram
glGetProgramInfoLog
glGetQueryObject
glGetQueryiv
glGetSeparableFilter
glGetShader
glGetShaderInfoLog
glGetShaderSource
glGetString
glGetTexEnv
glGetTexGen
glGetTexImage
glGetTexLevelParameter
glGetTexParameter
glGetUniform
glGetUniformLocation
glGetVertexAttrib
glGetVertexAttribPointerv
Top


H
glHint
glHistogram
Top


I
glIndex
glIndexMask
glIndexPointer
glInitNames
glInterleavedArrays
glIsBuffer
glIsEnabled
glIsList
glIsProgram
glIsQuery
glIsShader
glIsTexture
Top


L
glLight
glLightModel
glLineStipple
glLineWidth
glLinkProgram
glListBase
glLoadIdentity
glLoadMatrix
glLoadName
glLoadTransposeMatrix
glLogicOp
Top


M
glMap1
glMap2
glMapBuffer
glMapGrid
glMaterial
glMatrixMode
glMinmax
glMultMatrix
glMultTransposeMatrix
glMultiDrawArrays
glMultiDrawElements
glMultiTexCoord
Top


N
glNewList
glNormal
glNormalPointer
Top


O
glOrtho
Top


P
glPassThrough
glPixelMap
glPixelStore
glPixelTransfer
glPixelZoom
glPointParameter
glPointSize
glPolygonMode
glPolygonOffset
glPolygonStipple
glPopAttrib
glPopClientAttrib
glPopMatrix
glPopName
glPrioritizeTextures
glPushAttrib
glPushClientAttrib
glPushMatrix
glPushName
Top


R
glRasterPos
glReadBuffer
glReadPixels
glRect
glRenderMode
glResetHistogram
glResetMinmax
glRotate
Top


S
glSampleCoverage
glScale
glScissor
glSecondaryColor
glSecondaryColorPointer
glSelectBuffer
glSeparableFilter2D
glShadeModel
glShaderSource
glStencilFunc
glStencilFuncSeparate
glStencilMask
glStencilMaskSeparate
glStencilOp
glStencilOpSeparate
Top


T
glTexCoord
glTexCoordPointer
glTexEnv
glTexGen
glTexImage1D
glTexImage2D
glTexImage3D
glTexParameter
glTexSubImage1D
glTexSubImage2D
glTexSubImage3D
glTranslate
Top


U
glUniform
glUnmapBuffer
glUseProgram
Top


V
glValidateProgram
glVertex
glVertexAttrib
glVertexAttribPointer
glVertexPointer
glViewport
Top


W
glWindowPos
Top


glu
gluBeginCurve
gluBeginPolygon
gluBeginSurface
gluBeginTrim
gluBuild1DMipmapLevels
gluBuild1DMipmaps
gluBuild2DMipmapLevels
gluBuild2DMipmaps
gluBuild3DMipmapLevels
gluBuild3DMipmaps
gluCheckExtension
gluCylinder
gluDeleteNurbsRenderer
gluDeleteQuadric
gluDeleteTess
gluDisk
gluEndCurve
gluEndPolygon
gluEndSurface
gluEndTrim
gluErrorString
gluGetNurbsProperty
gluGetString
gluGetTessProperty
gluLoadSamplingMatrices
gluLookAt
gluNewNurbsRenderer
gluNewQuadric
gluNewTess
gluNextContour
gluNurbsCallback
gluNurbsCallbackData
gluNurbsCallbackDataEXT
gluNurbsCurve
gluNurbsProperty
gluNurbsSurface
gluOrtho2D
gluPartialDisk
gluPerspective
gluPickMatrix
gluProject
gluPwlCurve
gluQuadricCallback
gluQuadricDrawStyle
gluQuadricNormals
gluQuadricOrientation
gluQuadricTexture
gluScaleImage
gluSphere
gluTessBeginContour
gluTessBeginPolygon
gluTessCallback
gluTessEndContour
gluTessEndPolygon
gluTessNormal
gluTessProperty
gluTessVertex
gluUnProject
gluUnProject4
Top


glX
glXChooseFBConfig
glXChooseVisual
glXCopyContext
glXCreateContext
glXCreateGLXPixmap
glXCreateNewContext
glXCreatePbuffer
glXCreatePixmap
glXCreateWindow
glXDestroyContext
glXDestroyGLXPixmap
glXDestroyPbuffer
glXDestroyPixmap
glXDestroyWindow
glXFreeContextEXT
glXGetClientString
glXGetConfig
glXGetContextIDEXT
glXGetCurrentContext
glXGetCurrentDisplay
glXGetCurrentDrawable
glXGetCurrentReadDrawable
glXGetFBConfigAttrib
glXGetFBConfigs
glXGetProcAddress
glXGetSelectedEvent
glXGetVisualFromFBConfig
glXImportContextEXT
glXIntro
glXIsDirect
glXMakeContextCurrent
glXMakeCurrent
glXQueryContext
glXQueryContextInfoEXT
glXQueryDrawable
glXQueryExtension
glXQueryExtensionsString
glXQueryServerString
glXQueryVersion
glXSelectEvent
glXSwapBuffers
glXUseXFont
glXWaitGL
glXWaitX
Top

OpenGL Miscellaneous State Variables


GL_LIST_BASE
Description: Setting of glListBase
Attribute group: list
Initial value: 0
Get command: glGetIntegerv

GL_LIST_INDEX
Description: Number of display lists under construction; 0 if none
Attribute group:
Initial value: 0
Get command: glGetIntegerv

GL_LIST_MODE
Description: Mode of display list under construction; undefined if none
Attribute group:
Initial value: 0
Get command: glGetIntegerv

GL_ATTRIB_STACK_DEPTH
Description: Attribute stack pointer
Attribute group:
Initial value: 0
Get command: glGetIntegerv

GL_NAME_STACK_DEPTH
Description: Name stack depth
Attribute group:
Initial value: 0
Get command: glGetIntegerv

GL_RENDER_MODE
Description: glRenderMode setting
Attribute group:
Initial value: GL_RENDER
Get command: glGetIntegerv


Description: Current error code(s)
Attribute group:
Initial value: 0
Get command: glGetError

OpenGL Functions

OpenGL
GL Functions

The OpenGL commands, in alphabetical order are presented here. Each reference page describes one or more function. See also GLU Functions.

Function Description
glAccum The glAccum function operates on the accumulation buffer.
glAddSwapHintRectWIN The glAddSwapHintRectWIN function specifies a set of rectangles that are to be copied by SwapBuffers.
glAlphaFunc The glAlphaFunc function enables your application to set the alpha test function.
glAreTexturesResident The glAreTexturesResident function determines whether specified texture objects are resident in texture memory.
glArrayElement The glArrayElement function specifies the array elements used to render a vertex.
glBegin, glEnd The glBegin and glEnd functions delimit the vertices of a primitive or a group of like primitives.
glBindTexture The glBindTexture function enables the creation of a named texture that is bound to a texture target.
glBitmap The glBitmap function draws a bitmap.
glBlendFunc The glBlendFunc function specifies pixel arithmetic.
glCallList The glCallList function executes a display list.
glCallLists The glCallLists function executes a list of display lists.
glClear The glClear function clears buffers to preset values.
glClearAccum The glClearAccum function specifies the clear values for the accumulation buffer.
glClearColor The glClearColor function specifies clear values for the color buffers.
glClearDepth The glClearDepth function specifies the clear value for the depth buffer.
glClearIndex The glClearIndex function specifies the clear value for the color-index buffers.
glClearStencil The glClearStencil function specifies the clear value for the stencil buffer.
glClipPlane The glClipPlane function specifies a plane against which all geometry is clipped.
glColor These functions set the current color.
glColorMask The glColorMask function enables and disables writing of frame-buffer color components.
glColorMaterial The glColorMaterial function causes a material color to track the current color.
glColorPointer The glColorPointer function defines an array of colors.
glColorTableEXT The glColorTableEXT function specifies the format and size of a palette for targeted paletted textures.
glColorSubTableEXT The glColorSubTableEXT function specifies a portion of the targeted texture's palette to be replaced.
glCopyPixels The glCopyPixels function copies pixels in the framebuffer.
glCopyTexImage1D The glCopyTexImage1D function copies pixels from the framebuffer into a one-dimensional texture image.
glCopyTexImage2D The glCopyTexImage2D function copies pixels from the framebuffer into a two-dimensional texture image.
glCopyTexSubImage1D The glCopyTexSubImage1D function copies a sub-image of a one-dimensional texture image from the framebuffer.
glCopyTexSubImage2D The glCopyTexSubImage2D function copies a sub-image of a two-dimensional texture image from the framebuffer.
glCullFace The glCullFace function specifies whether front- or back-facing facets can be culled.
glDeleteLists The glDeleteLists function deletes a contiguous group of display lists.
glDeleteTextures The glDeleteTextures function deletes named textures.
glDepthFunc The glDepthFunc function specifies the value used for depth-buffer comparisons.
glDepthMask The glDepthMask function enables or disables writing into the depth buffer.
glDepthRange The glDepthRange function specifies the mapping of z values from normalized device coordinates to window coordinates.
glDrawArrays The glDrawArrays function specifies multiple primitives to render.
glDrawBuffer The glDrawBuffer function specifies which color buffers are to be drawn into.
glDrawElements The glDrawElements function renders primitives from array data.
glDrawPixels The glDrawPixels function writes a block of pixels to the framebuffer.
glEdgeFlag The glEdgeFlagPointer function defines an array of edge flags.
glEdgeFlagPointer The glEdgeFlagPointer function defines an array of edge flags.
glEnable, glDisable The glEnable and glDisable functions enable or disable OpenGL capabilities.
glEnableClientState, glDisableClientState The glEnableClientState and glDisableClientState functions enable and disable arrays respectively.
glEvalCoord These functions evaluate enabled one- and two-dimensional maps.
glEvalMesh1, glEvalMesh2 The glEvalMesh1 and glEvalMesh2 functions compute a one- or two-dimensional grid of points or lines.
glEvalPoint1, glEvalPoint2 The glEvalPoint1 and glEvalPoint2 functions generate and evaluate a single point in a mesh.
glFeedbackBuffer The glFeedbackBuffer function controls feedback mode.
glFinish The glFinish function blocks until all OpenGL execution is complete.
glFlush The glFlush function forces execution of OpenGL functions in finite time.
glFogf, glFogi, glFogfv, glFogiv These functions specify fog parameters.
glFrontFace The glFrontFace function defines front- and back-facing polygons.
glFrustum The glFrustum function multiplies the current matrix by a perspective matrix.
glGenLists The glGenLists function generates a contiguous set of empty display lists.
glGenTextures The glGenTextures function generates texture names.
glGetBooleanv, glGetDoublev, glGetFloatv, glGetIntegerv These functions return the value or values of a selected parameter.
glGetClipPlane The glGetClipPlane function returns the coefficients of the specified clipping plane.
glGetColorTableEXT The glGetColorTableEXT function gets the color table data of the current targeted texture palette.
glGetColorTableParameterfvEXT, glGetColorTableParameterivEXT The glGetColorTableParameterfvEXT and glGetColorTableParameterivEXT functions get palette parameters from color tables.
glGetError The glGetError function returns error information.
glGetLightfv, glGetLightiv The glGetLightfv and glGetLightiv functions return light source parameter values.
glGetMapdv, glGetMapfv, glGetMapiv These functions return evaluator parameters.
glGetMaterialfv, glGetMaterialiv The glGetMaterialfv and glGetMaterialiv functions return material parameters.
glGetPixelMapfv, glGetPixelMapuiv, glGetPixelMapusv These functions return the specified pixel map.
glGetPointerv The glGetPointerv function returns the address of a vertex data array.
glGetPolygonStipple The glGetPolygonStipple function returns the polygon stipple pattern.
glGetString The glGetString function returns a string describing the current OpenGL connection.
glGetTexEnvfv The glGetTexEnvfv and glGetTexEnviv functions return texture environment parameters.
glGetTexGendv, glGetTexGenfv, glGetTexGeniv These functions return texture coordinate generation parameters.
glGetTexImage The glGetTexImage function returns a texture image.
glGetTexLevelParameterfv, glGetTexLevelParameteriv The glGetTexLevelParameterfv and glGetTexLevelParameteriv functions return texture parameter values for a specific level of detail.
glGetTexParameterfv, glGetTexParameteriv The glGetTexParameterfv and glGetTexParameteriv functions return texture parameter values.
glHint The glHint function specifies implementation-specific hints.
glIndex These functions set the current color index.
glIndexMask The glIndexMask function controls the writing of individual bits in the color-index buffers.
glIndexPointer The glIndexPointer function defines an array of color indexes.
glInitNames The glInitNames function initializes the name stack.
glInterleavedArrays The glInterleavedArrays function simultaneously specifies and enables several interleaved arrays in a larger aggregate array.
glIsEnabled The gllsEnabled function tests whether a capability is enabled.
glIsList The gllsList function tests for display list existence.
glIsTexture The glIsTexture function determines if a name corresponds to a texture.
glLightf, glLighti, glLightfv, glLightiv These functions set light-source parameters.
glLightModelf, glLightModeli, glLightModelfv, glLightModeliv These functions set the lighting model parameters.
glLineStipple The glLineStipple function specifies the line stipple pattern.
glLineWidth The glLineWidth function specifies the width of rasterized lines.
glListBase The glListBase function sets the display list base for glCallLists.
glLoadIdentity The glLoadIdentity function replaces the current matrix with the identity matrix.
glLoadMatrixd, glLoadMatrixf The glLoadMatrixd and glLoadMatrixf functions replace the current matrix with an arbitrary matrix.
glLoadName The glLoadName function loads a name onto the name stack.
glLogicOp The glLogicOp function specifies a logical pixel operation for color index rendering.
glMap1d, glMap1f The glMap1d and glMap1f functions define a one-dimensional evaluator.
glMap2d, glMap2f The glMap2d and glMap2f functions define a two-dimensional evaluator.
glMapGrid1d, glMapGrid1f, glMapGrid2d, glMapGrid2f These functions define a one- or two-dimensional mesh.
glMaterialf, glMateriali, glMaterialfv, glMaterialiv These functions specify material parameters for the lighting model.
glMatrixMode The glMatrixMode function specifies which matrix is the current matrix.
glMultMatrixd, glMultMatrixf The glMultMatrixd and glMultMatrixf functions multiply the current matrix by an arbitrary matrix.
glNewList, glEndList The glNewList and glEndList functions create or replace a display list.
glNormal These functions set the current normal vector.
glNormalPointer The glNormalPointer function defines an array of normals.
glOrtho The glOrtho function multiplies the current matrix by an orthographic matrix.
glPassThrough The glPassThrough function places a marker in the feedback buffer.
glPixelMapfv, glPixelMapuiv, glPixelMapusv These functions set up pixel transfer maps.
glPixelStoref, glPixelStorei The glPixelStoref and glPixelStorei functions set pixel storage modes.
glPixelTransferf, glPixelTransferi The glPixelTransferf and glPixelTransferi functions set pixel transfer modes.
glPixelZoom The glPixelZoom function specifies the pixel zoom factors.
glPointSize The glPointSize function specifies the diameter of rasterized points.
glPolygonMode The glPolygonMode function selects a polygon rasterization mode.
glPolygonOffset The glPolygonOffset function sets the scale and units OpenGL uses to calculate depth values.
glPolygonStipple The glPolygonStipple function sets the polygon stippling pattern.
glPrioritizeTextures The glPrioritizeTextures function sets the residence priority of textures.
glPushAttrib, glPopAttrib The glPushAttrib and glPopAttrib functions push and pop the attribute stack.
glPushClientAttrib, glPopClientAttrib The glPushClientAttrib and glPopClientAttrib functions save and restore groups of client-state variables on the client-attribute stack.
glPushMatrix, glPopMatrix The glPushMatrix and glPopMatrix functions push and pop the current matrix stack.
glPushName, glPopName The glPushName and glPopName functions push and pop the name stack.
glRasterPos These functions specify the raster position for pixel operations.
glReadBuffer The glReadBuffer function selects a color buffer source for pixels.
glReadPixels The glReadPixels function reads a block of pixels from the framebuffer.
glRectd, glRectf, glRecti, glRects, glRectdv, glRectfv, glRectiv, glRectsv These functions draw a rectangle.
glRenderMode The glRenderMode function sets the rasterization mode.
glRotated, glRotatef The glRotated and glRotatef functions multiply the current matrix by a rotation matrix.
glScaled, glScalef The glScaled and glScalef functions multiply the current matrix by a general scaling matrix.
glScissor The glScissor function defines the scissor box.
glSelectBuffer The glSelectBuffer function establishes a buffer for selection mode values.
glShadeModel The glShadeModel function selects flat or smooth shading.
glStencilFunc The glStencilFunc function sets the function and reference value for stencil testing.
glStencilMask The glStencilMask function controls the writing of individual bits in the stencil planes.
glStencilOp The glStencilOp function sets the stencil test actions.
glTexCoord These functions set the current texture coordinates.
glTexCoordPointer The glTexCoordPointer function defines an array of texture coordinates.
glTexEnvf, glTexEnvi, glTexEnvfv, glTexEnviv These functions set texture environment parameters.
glTexGend, glTexGenf, glTexGeni, glTexGendv, glTexGenfv, glTexGeniv These functions control the generation of texture coordinates.
glTexImage1D The glTexImage1D function specifies a one-dimensional texture image.
glTexImage2D The glTexImage2D function specifies a two-dimensional texture image.
glTexParameterf, glTexParameteri, glTexParameterfv, glTexParameteriv These functions set texture parameters.
glTexSubImage1D The glTexSubImage1D function specifies a portion of an existing one-dimensional texture image. You cannot define a new texture with glTexSubImage1D.
glTexSubImage2D The glTexSubImage2D function specifies a portion of an existing one-dimensional texture image. You cannot define a new texture with glTexSubImage2D.
glTranslated, glTranslatef The glTranslated and glTranslatef functions multiply the current matrix by a translation matrix.
glVertex These functions specify a vertex.
glVertexPointer The glVertexPointer function defines an array of vertex data.
glViewport The glViewport function sets the viewport.
Your Ad Here