English 中文(简体)
OpenGL Geomets Shader MacOS X
原标题:OpenGL Geometry Shader Mac OS X

I m试图通过地貌分布式的斜体,在MacOS X10.6下工作。 守则没有问题地汇编和链接,但出于某种原因,没有将地貌划分到屏幕上。 在这里,我要说:

#version 120
#extension GL_EXT_geometry_shader4: enable

void main()
{
    gl_Position = gl_PositionIn[0];
    EmitVertex();

    EndPrimitive();
}

If anybody could help I d appreciate it.

最佳回答

由此可见,问题根本就出现在《阶梯法典》中。 很显然,在使用120版本的地貌分层时,你必须确定投入和产出类型如下:

glProgramParameteriEXT(shaderProgramID, GL_GEOMETRY_OUTPUT_TYPE_EXT, GL_POINTS);
glProgramParameteriEXT(shaderProgramID, GL_GEOMETRY_VERTICES_OUT_EXT, GL_POINTS);

After that everything worked out perfectly.

问题回答

一种地貌分布式的斜体是整个原始状态的。 你们认为,这只适合问题。 如果您没有通过的话,你需要处理所有<代码>gl_Vertices 在(现值)中





相关问题
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 ...

热门标签