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






Windows & Linux

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
[Managed C++]
public: IAgStkGraphicsSurfaceMeshPrimitive^ InitializeWithSetHintAndRenderingMethod(
   AgEStkGraphicsSetHint SetHint,
   AgEStkGraphicsSurfaceMeshRenderingMethod RenderingMethod
);
[Unmanaged C++]
public: HRESULT InitializeWithSetHintAndRenderingMethod(
   AgEStkGraphicsSetHint SetHint,
   AgEStkGraphicsSurfaceMeshRenderingMethod RenderingMethod,
   IAgStkGraphicsSurfaceMeshPrimitive ** ReturnValue
);

Parameters

SetHint
MemberValueDescription
eStkGraphicsSetHintInfrequent0Rendering 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.
eStkGraphicsSetHintPartial1Rendering 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.
eStkGraphicsSetHintFrequent2Rendering 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
MemberValueDescription
eStkGraphicsSurfaceMeshRenderingMethodGeometryShader0Render the surface mesh using a geometry shader. Requires OpenGL 3.0 or 2.0 with the ARB_geometry_shader4 extension.
eStkGraphicsSurfaceMeshRenderingMethodVertexShader1Render the surface mesh using a vertex shader. Requires OpenGL 2.0 or 1.5 with the following extensions:
eStkGraphicsSurfaceMeshRenderingMethodAutomatic2Render 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

© 2018 Analytical Graphics, Inc. All Rights Reserved.