aboutsummaryrefslogtreecommitdiff
path: root/spec/headless/deviceinit.lua
blob: 7e913cde7f74722ff54abdbe657b3d0b68365570 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
print("device init called")
return {
    --[[
        Anti-Alias
        Should the window use fullscreen anti aliasing
        Default:16
    ]]
    ["Anti Alias"] = 16,
    --[[
        Bits Per Pixel
        The minimum bits per pixel of the color buffer in fullscreen. Ignored in window mode.
        Default:16
    ]]
    ["Bits Per Pixel"] = 16,
    --[[
        Device Type
        Options:
            WIN32 - Only avaliable on windows desktops
            WINCE - Only avaliable on windows mobile
            COCOA - Only avaliable on OSX
            X11   - Avaliable on Linux, Solaris, BSD, anyone that uses X11
            SDL   - Avaliable on most systems
            CONSOLE - Usually avaliable, but can only render text
            BEST  - Automatically choose the best device.
        Default:Best
    ]]
    ["Device Type"] = "BEST",
    --[[
        Display Adapter
        Pick which graphics card is used for rendering when there is more than one.
        Default:0
    ]]
    ["Display Adapter"] = 0,
    --[[
        Double Buffer
        Should the window use doublebuffering?
        Default:false
    ]]
    ["Double Buffer"] = true,
    --[[
        Multithreaded
        Should the display use multiple threads?
        Default:false
    ]]
    ["Multithreaded"] = false,
    --[[
        Driver Type
        The video driver used to render graphics
        Options:
            NULL        - You probably don't want this one
            SOFTWARE    - Donate your computer to a mueseum
            BURNINGS    - a software alternative
            D3D8        - Direct 3D 8 Win32 only
            D3D9        - Direct 3D 9 Win32 only
            OPENGL      - Open GL
        (vulkan support comming soon... maybe.)
        Default:OPENGL
    ]]
    ["Driver Type"] = "NULL",
    --[[
        Fullscreen
        Should the window be fullscreen?
        Default:false
    ]]
    ["Fullscreen"] = false,
    --[[
        Stencil buffer
        Should the stencil buffer be enabled?
        Default:false
    ]]
    ["Stencil Buffer"] = true,
    --[[
        Stereo Buffer
        Should the window use stereo buffers?
        Default:false
    ]]
    ["Stereo Buffer"] = false,
    --[[
        Vertical Sync
        Should the frame wait to be displayed to screen before starting the next draw?
        Enable this if you are getting graphical artifacts
        Default:false
    ]]
    ["VSync"] = true,
    --[[
        Window Width/height
        Adjusts the size of the window.
        Default: 640,480
    ]]
    ["Window Width"] = 640,
    ["Window Height"] = 480,
}