VS:RetrieveCustomRWPrefs

From Vectorworks Developer
Revision as of 10:12, 1 August 2013 by Root (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix

Description

Returns current Custom RenderWorks settings.
PROCEDURE RetrieveCustomRWPrefs(
VAR useTextures  :BOOLEAN;
VAR useTransparency  :BOOLEAN;
VAR useShadows  :BOOLEAN;
VAR useRayTracing  :BOOLEAN;
VAR useAntiAliasing  :BOOLEAN;
VAR useDithering  :BOOLEAN;
VAR tessellationDetail  :INTEGER;
VAR shadowStyle  :INTEGER;
)
def vs.RetrieveCustomRWPrefs():
    return (useTextures, useTransparency, useShadows, useRayTracing, useAntiAliasing, useDithering, tessellationDetail, shadowStyle, rayTracingRecursion)

Remarks

[orso, 2008-03-18]: It looks like this routine is now sort of obsolete: always returns FALSE and 0-values, unregarded the current custom RW settings [VW 13.0.1 -(83388)].

Example

PROCEDURE Example;
TYPE
   RWPrefStruct = STRUCTURE
      useTextures        :BOOLEAN; 
      useTransparency    :BOOLEAN; 
      useShadows         :BOOLEAN; 
      useRayTracing      :BOOLEAN; 
      useAntiAliasing    :BOOLEAN; 
      useDithering       :BOOLEAN; 
      tessellationDetail :INTEGER; 
      shadowStyle        :INTEGER; 
      rayTraceRecursion  :INTEGER;
   END;
VAR
   RWSettings :RWPrefStruct;
BEGIN
   RetrieveCustomRWPrefs(
      RWSettings.useTextures,
      RWSettings.useTransparency,
      RWSettings.useShadows,
      RWSettings.useRayTracing,
      RWSettings.useAntiAliasing,
      RWSettings.useDithering,
      RWSettings.tessellationDetail,
      RWSettings.shadowStyle,
      RWSettings.rayTraceRecursion);
END;
RUN(Example);

Version

Availability: from All Versions

This is drop-in function.

Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox