English 中文(简体)
修改开放GL的物体
原标题:Modifying an object in OpenGL
  • 时间:2012-01-16 04:53:09
  •  标签:
  • opengl

I m trying to learn some OpenGL via this tutorial.

My question is regarding these lines of code:

glObjectParameteri(GL_MODIFY, GL_OBJECT_AN_INTEGER, 5);
glObjectParameterf(GL_MODIFY, GL_OBJECT_A_FLOAT, 0.4f);
glObjectParameters(GL_MODIFY, GL_OBJECT_A_STRING, "Some String");

到目前为止,已输入一个开放式GL物体Object,该物体须遵守目标GL_MODIF,现在这些代码应修改该物体的内容。 我的问题是,这些职能中的第二个参数是什么? (GL_OBJECT_AN_INTEERT/code>,GL_OBJECT_A_FLOATGL_OBJECT_A_STRING) 看来,<代码>glObjectParaifi将具体针对分类,因为该功能在尾有一个<代码>i

最佳回答

计算参数的名称,而不是其类型(例如,用名称标明类型以显示<条码>i、<条码>f和<条码>ssuffixes系指)。 每一类的参数可能不止一个,我认为,心理能力已经进入开放的GL标准。

问题回答

暂无回答




相关问题
OpenGL 3D Selection

I am trying to create a 3D robot that should perform certain actions when certain body parts are clicked. I have successfully (sort of) implemented picking in that if you click on any x-plane part, it ...

CVDisplayLink instead of NSTimer

I have started to implement cvDisplayLink to drive the render loop instead of nstimer, as detailed in this technical note https://developer.apple.com/library/archive/qa/qa1385/_index.html Is it ...

Can the iPhone simulator handle PVR textures?

I have a really weird problem with PVR textures on the iPhone simulator- the framerate falls through the floor on the iPhone simulator, but on the iPhone itself it works just fine. Has anyone had any ...

Calculate fps (frames per second) for iphone app

I am using an opengl es iphone application. What is the most accurate way to calculate the frames per second of my application for performance tuning?

Java - Zoom / 3D Data Visualization Libraries

What are the best libraries/frameworks for doing 3D and/or Zoom interfaces in Java? I d like to be able to do some prototyping of creating new types of interfaces for navigating within data and ...

FLTK in Cygwin using Eclipse (Linking errors)

I have this assignment due that requires the usage of FLTK. The code is given to us and it should compile straight off of the bat, but I am having linking errors and do not know which other libraries ...

热门标签