23 lines
528 B
Swift
23 lines
528 B
Swift
import AppKit
|
|
import RaylibBridge
|
|
|
|
let RENDER_CONFIG = sr_config(
|
|
fov_y: 45.0,
|
|
near_plane: 0.1,
|
|
far_plane: 1000.0,
|
|
shadow_size: 256,
|
|
ground_size: 40.0
|
|
)
|
|
|
|
let RENDER_FPS = 60.0
|
|
|
|
let RENDER_OPENGL_ATTRS: [NSOpenGLPixelFormatAttribute] = [
|
|
UInt32(NSOpenGLPFAOpenGLProfile), UInt32(NSOpenGLProfileVersion3_2Core),
|
|
UInt32(NSOpenGLPFAColorSize), 24,
|
|
UInt32(NSOpenGLPFAAlphaSize), 8,
|
|
UInt32(NSOpenGLPFADepthSize), 24,
|
|
UInt32(NSOpenGLPFADoubleBuffer),
|
|
UInt32(NSOpenGLPFAAccelerated),
|
|
0
|
|
]
|