2using System.Collections.Generic;
4using System.Runtime.CompilerServices;
54 [MethodImpl(MethodImplOptions.InternalCall)]
61 [MethodImpl(MethodImplOptions.InternalCall)]
68 [MethodImpl(MethodImplOptions.InternalCall)]
75 [MethodImpl(MethodImplOptions.InternalCall)]
82 [MethodImpl(MethodImplOptions.InternalCall)]
89 [MethodImpl(MethodImplOptions.InternalCall)]
96 [MethodImpl(MethodImplOptions.InternalCall)]
105 [MethodImpl(MethodImplOptions.InternalCall)]
112 [MethodImpl(MethodImplOptions.InternalCall)]
121 [MethodImpl(MethodImplOptions.InternalCall)]
122 public static extern void SetFXAA(
bool value);
128 [MethodImpl(MethodImplOptions.InternalCall)]
137 [MethodImpl(MethodImplOptions.InternalCall)]
144 [MethodImpl(MethodImplOptions.InternalCall)]
151 [MethodImpl(MethodImplOptions.InternalCall)]
158 [MethodImpl(MethodImplOptions.InternalCall)]
165 [MethodImpl(MethodImplOptions.InternalCall)]
172 [MethodImpl(MethodImplOptions.InternalCall)]
179 [MethodImpl(MethodImplOptions.InternalCall)]
186 [MethodImpl(MethodImplOptions.InternalCall)]
197 INTERNAL_SetDirectionalShadowsQuality((
int)qualityLevel);
209 [MethodImpl(MethodImplOptions.InternalCall)]
210 static extern void INTERNAL_SetDirectionalShadowsQuality(
int qualityLevel);
212 [MethodImpl(MethodImplOptions.InternalCall)]
213 static extern int INTERNAL_GetDirectionalShadowsQuality();
223 INTERNAL_SetPointShadowsQuality((
int)qualityLevel);
235 [MethodImpl(MethodImplOptions.InternalCall)]
236 static extern void INTERNAL_SetPointShadowsQuality(
int qualityLevel);
238 [MethodImpl(MethodImplOptions.InternalCall)]
239 static extern int INTERNAL_GetPointShadowsQuality();
249 INTERNAL_SetSpotShadowsQuality((
int)qualityLevel);
261 [MethodImpl(MethodImplOptions.InternalCall)]
262 static extern void INTERNAL_SetSpotShadowsQuality(
int qualityLevel);
264 [MethodImpl(MethodImplOptions.InternalCall)]
265 static extern int INTERNAL_GetSpotShadowsQuality();
275 INTERNAL_SetShadowsCascadesCount((
int)cascadesCount);
287 [MethodImpl(MethodImplOptions.InternalCall)]
288 static extern void INTERNAL_SetShadowsCascadesCount(
int cascadesCount);
290 [MethodImpl(MethodImplOptions.InternalCall)]
291 static extern int INTERNAL_GetShadowsCascadesCount();
301 INTERNAL_SetShadowsSofteness((
int)shadowsSofteness);
313 [MethodImpl(MethodImplOptions.InternalCall)]
314 static extern void INTERNAL_SetShadowsSofteness(
int shadowsSofteness);
316 [MethodImpl(MethodImplOptions.InternalCall)]
317 static extern int INTERNAL_GetShadowsSofteness();
325 [MethodImpl(MethodImplOptions.InternalCall)]
332 [MethodImpl(MethodImplOptions.InternalCall)]
339 [MethodImpl(MethodImplOptions.InternalCall)]
346 [MethodImpl(MethodImplOptions.InternalCall)]
static void SetExclusiveMode(bool value)
Set window should run in exclusive mode and switch display resolution if needed
static ShadowsSoftenessLevel GetShadowsSofteness()
Return shadows softeness
static void SetFullScreen(bool value)
Set window fullscreen
static bool GetFullScreen()
Return true if window is in fullscreen
ShadowsSoftenessLevel
Shadows softeness level enum
static float GetShadowsDistance()
Return shadows distance
static void SetAutoDynamicResolution(bool value)
Set use auto back buffer dynamic resolution
static void SetDirectionalShadowsQuality(ShadowsQualityLevel qualityLevel)
Set directional shadows quality
static float GetDynamicResolutionValue()
Return back buffer resolution ratio
static void SetVSync(bool value)
Set V-Sync enabled or not
static bool GetAutoDynamicResolution()
Returns if auto back buffer dynamic resolution is using
static bool GetVSync()
Return true if V-Sync is enabled
ShadowsQualityLevel
Shadows quality level enum
static void SetShadowsDistance(float value)
Set distance in which shadows will be visible
static void SetShadowsEnabled(bool value)
Enable/disable shadows
ShadowsCascadesCount
Shadows cascades count enum
static void SetDynamicResolutionValue(float value)
Set back buffer resolution ratio (from 0.5 to 1)
static bool GetDynamicResolution()
Returns if back buffer dynamic resolution is using
static int GetWindowHeight()
Return window height
static void SetShadowsSofteness(ShadowsSoftenessLevel shadowsSofteness)
Set shadows softeness
static void SetShadowsCascadesCount(ShadowsCascadesCount cascadesCount)
Set shadows cascades count (for directional lights only)
static void SetDynamicResolution(bool value)
Set use back buffer dynamic resolution
static bool GetShadowsEnabled()
Returns if shadows are enabled
static ShadowsQualityLevel GetSpotShadowsQuality()
Return spot shadows quality
static int GetWindowWidth()
Return window width
static void SetPointShadowsQuality(ShadowsQualityLevel qualityLevel)
Set point shadows quality
static ShadowsQualityLevel GetPointShadowsQuality()
Return point shadows quality
static bool GetFXAA()
Return true if FXAA anti aliasing is enabled
static ShadowsQualityLevel GetDirectionalShadowsQuality()
Return directional shadows quality
static void SetAutoDynamicResolutionTargetFPS(int value)
Set target frames per second for auto dynamic resolution
static void SetSpotShadowsQuality(ShadowsQualityLevel qualityLevel)
Set spot shadows quality
static bool GetExclusiveMode()
Return true if window is running in exclusive mode
static void SetFXAA(bool value)
Set use FXAA anti aliasing
static int GetAutoDynamicResolutionTargetFPS()
Return target frames per second for auto dynamic resolution
static ShadowsCascadesCount GetShadowsCascadesCount()
Return shadows cascades count
static void SetWindowSize(int width, int height)
Set window size