AGI STK Graphics 11Send comments on this topic.
InitializeWithGraphicsFontAndSetHint2d Method (IAgStkGraphicsTextBatchPrimitiveFactory)
See Also 
Font
The font used to render text in the text batch.
SetHint
RenderInScreenSpace
Windows






Windows & Linux

Description

Initializes a text batch primitive with the specified font and setHint, optimized for 2d screen space rendering.

Syntax

[Visual Basic .NET]
Public Function InitializeWithGraphicsFontAndSetHint2d( _
   ByVal Font As IAgStkGraphicsGraphicsFont, _
   ByVal SetHint As AgEStkGraphicsSetHint, _
   ByVal RenderInScreenSpace As Boolean _
) As IAgStkGraphicsTextBatchPrimitive
[C#]
public IAgStkGraphicsTextBatchPrimitive InitializeWithGraphicsFontAndSetHint2d(
   IAgStkGraphicsGraphicsFont Font,
   AgEStkGraphicsSetHint SetHint,
   bool RenderInScreenSpace
);
[Managed C++]
public: IAgStkGraphicsTextBatchPrimitive^ InitializeWithGraphicsFontAndSetHint2d(
   IAgStkGraphicsGraphicsFont ^ Font,
   AgEStkGraphicsSetHint SetHint,
   bool RenderInScreenSpace
);
[Java]
public IAgStkGraphicsTextBatchPrimitive initializeWithGraphicsFontAndSetHint2d(
   IAgStkGraphicsGraphicsFont Font,
   AgEStkGraphicsSetHint SetHint,
   bool RenderInScreenSpace
);
[Unmanaged C++]
public: HRESULT InitializeWithGraphicsFontAndSetHint2d(
   IAgStkGraphicsGraphicsFont * Font,
   AgEStkGraphicsSetHint SetHint,
   VARIANT_BOOL RenderInScreenSpace,
   IAgStkGraphicsTextBatchPrimitive ** ReturnValue
);

Parameters

Font
The font used to render text in the text batch.
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.
RenderInScreenSpace

See Also

© 2018 Analytical Graphics, Inc. All Rights Reserved.