Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
CameraSupport Class Reference
Inheritance diagram for CameraSupport:

Public Types

enum  Divider {
  None , Floor , Round , Ceil ,
  Odd
}
 

Public Member Functions

void ResizeCameraToPixelPerfect ()
 
void OnChangeResolution ()
 
float GetOrthoSize ()
 

Public Attributes

Camera cam
 
Vector3 renderPos
 
GameScreen screen
 
ScreenGrading grading
 
Upscaler upscaler
 
Divider divier
 
bool snap
 
float PixelsPerUnit = 100f
 
TiltShift tiltShift
 
BloomOptimized bloom
 
Beautify beautify
 
Kuwahara kuwahara
 
GaussianBlur blur
 
float Zoom = 1f
 

Detailed Description

Definition at line 6 of file CameraSupport.cs.

Member Enumeration Documentation

◆ Divider

Enumerator
None 
Floor 
Round 
Ceil 
Odd 

Definition at line 8 of file CameraSupport.cs.

Member Function Documentation

◆ GetOrthoSize()

float CameraSupport.GetOrthoSize ( )
inline

Definition at line 55 of file CameraSupport.cs.

56 {
57 float result = 0f;
58 switch (divier)
59 {
60 case Divider.None:
61 result = (float)Screen.height * 0.5f * 0.01f;
62 break;
63 case Divider.Floor:
64 result = (float)Mathf.FloorToInt((float)Screen.height * 0.5f) * 0.01f;
65 break;
66 case Divider.Round:
67 result = (float)Mathf.RoundToInt((float)Screen.height * 0.5f) * 0.01f;
68 break;
69 case Divider.Ceil:
70 result = (float)Mathf.CeilToInt((float)Screen.height * 0.5f) * 0.01f;
71 break;
72 case Divider.Odd:
73 result = (float)Screen.height * 0.5f * 0.01f + 0.005f;
74 break;
75 }
76 return result;
77 }
Divider divier

References divier.

Referenced by ResizeCameraToPixelPerfect().

◆ OnChangeResolution()

void CameraSupport.OnChangeResolution ( )
inline

Definition at line 51 of file CameraSupport.cs.

52 {
53 }

Referenced by CoreConfig.ApplyGrading(), CoreConfig.ApplyZoom(), and Core.OnChangeResolution().

◆ ResizeCameraToPixelPerfect()

void CameraSupport.ResizeCameraToPixelPerfect ( )
inline

Definition at line 46 of file CameraSupport.cs.

47 {
48 cam.orthographicSize = GetOrthoSize() / Zoom;
49 }
float GetOrthoSize()

References GetOrthoSize(), and Zoom.

Referenced by BaseGameScreen.RefreshScreenSize().

Member Data Documentation

◆ beautify

Beautify CameraSupport.beautify

Definition at line 37 of file CameraSupport.cs.

Referenced by CoreConfig.Apply().

◆ bloom

BloomOptimized CameraSupport.bloom

Definition at line 35 of file CameraSupport.cs.

Referenced by CoreConfig.Apply().

◆ blur

GaussianBlur CameraSupport.blur

Definition at line 41 of file CameraSupport.cs.

◆ cam

Camera CameraSupport.cam

Definition at line 17 of file CameraSupport.cs.

Referenced by CoreConfig.Apply().

◆ divier

Divider CameraSupport.divier

Definition at line 27 of file CameraSupport.cs.

Referenced by GetOrthoSize(), and BaseGameScreen.RefreshScreenSize().

◆ grading

◆ kuwahara

Kuwahara CameraSupport.kuwahara

Definition at line 39 of file CameraSupport.cs.

◆ PixelsPerUnit

float CameraSupport.PixelsPerUnit = 100f

Definition at line 31 of file CameraSupport.cs.

◆ renderPos

Vector3 CameraSupport.renderPos

◆ screen

GameScreen CameraSupport.screen

Definition at line 21 of file CameraSupport.cs.

◆ snap

bool CameraSupport.snap

Definition at line 29 of file CameraSupport.cs.

◆ tiltShift

TiltShift CameraSupport.tiltShift

Definition at line 33 of file CameraSupport.cs.

◆ upscaler

Upscaler CameraSupport.upscaler

Definition at line 25 of file CameraSupport.cs.

◆ Zoom

float CameraSupport.Zoom = 1f

The documentation for this class was generated from the following file: