AGI STK Graphics 11 Send comments on this topic.
InitializeWithSetHintAndRenderingMethod Method (IAgStkGraphicsSurfaceMeshPrimitiveFactory)
See Also 
SetHint
RenderingMethod
The method used to render the primitive.





Description

Initializes a surface mesh primitive with the specified setHint and renderingMethod.

Syntax

[Visual Basic .NET]
Public Function InitializeWithSetHintAndRenderingMethod( _
   ByVal SetHint As AgEStkGraphicsSetHint, _
   ByVal RenderingMethod As AgEStkGraphicsSurfaceMeshRenderingMethod _
) As IAgStkGraphicsSurfaceMeshPrimitive

[Unmanaged C++]
public: HRESULT InitializeWithSetHintAndRenderingMethod(
AgEStkGraphicsSetHint SetHint,
AgEStkGraphicsSurfaceMeshRenderingMethod RenderingMethod,
IAgStkGraphicsSurfaceMeshPrimitive ** ReturnValue
);

Parameters

SetHint
Member Value Description
eStkGraphicsSetHintInfrequent 0 Rendering is optimized for static geometry. The primitive's vertices are not going to be updated with Set() or SetPartial() calls. Calls to SetPartial() will fail. Calls to Set() are allowed but may not be as efficient as SetHintFrequent.
eStkGraphicsSetHintPartial 1 Rendering is optimized for dynamic geometry. The primitive's vertices are expected to be updated with SetPartial() - some or all of the vertices will change but the number of vertices will not.
eStkGraphicsSetHintFrequent 2 Rendering is optimized for streaming geometry. The primitive's vertices are expected to be updated with Set() - all the vertices will change and/or the number of vertices will change. Calls to SetPartial() will fail.
RenderingMethod
Member Value Description
eStkGraphicsSurfaceMeshRenderingMethodGeometryShader 0 Render the surface mesh using a geometry shader. Requires OpenGL 3.0 or 2.0 with the ARB_geometry_shader4 extension.
eStkGraphicsSurfaceMeshRenderingMethodVertexShader 1 Render the surface mesh using a vertex shader. Requires OpenGL 2.0 or 1.5 with the following extensions:
eStkGraphicsSurfaceMeshRenderingMethodAutomatic 2 Render the surface mesh using an automatically selected method based on the capabilities of the video card.
The method used to render the primitive.

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1