@tlua/gmod 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.tlua +1 -0
- package/package.json +1 -1
- package/types/achievements.d.tlua +15 -45
- package/types/ai.d.tlua +5 -15
- package/types/angle.d.tlua +18 -54
- package/types/baseclass.d.tlua +2 -4
- package/types/bf_read.d.tlua +11 -32
- package/types/bit.d.tlua +11 -33
- package/types/cam.d.tlua +16 -48
- package/types/ceffectdata.d.tlua +32 -95
- package/types/chat.d.tlua +5 -15
- package/types/cleanup.d.tlua +7 -21
- package/types/cluaemitter.d.tlua +12 -35
- package/types/clualocomotion.d.tlua +40 -119
- package/types/cluaparticle.d.tlua +44 -131
- package/types/cmovedata.d.tlua +47 -140
- package/types/cnavarea.d.tlua +77 -230
- package/types/cnavladder.d.tlua +22 -65
- package/types/cnewparticleeffect.d.tlua +26 -77
- package/types/color.d.tlua +28 -84
- package/types/concommand.d.tlua +4 -12
- package/types/constraint.d.tlua +28 -84
- package/types/construct.d.tlua +1 -3
- package/types/contentheader.d.tlua +3 -6
- package/types/contenticon.d.tlua +9 -24
- package/types/contentsidebar.d.tlua +4 -9
- package/types/contextbase.d.tlua +4 -9
- package/types/controlpanel.d.tlua +18 -40
- package/types/controlpresets.d.tlua +13 -36
- package/types/convar.d.tlua +16 -47
- package/types/cookie.d.tlua +3 -9
- package/types/coroutine.d.tlua +7 -21
- package/types/crecipientfilter.d.tlua +16 -47
- package/types/csoundpatch.d.tlua +14 -41
- package/types/ctakedamageinfo.d.tlua +33 -98
- package/types/ctrlnumpad.d.tlua +6 -17
- package/types/cusercmd.d.tlua +27 -80
- package/types/cvars.d.tlua +6 -18
- package/types/dadjustablemodelpanel.d.tlua +7 -18
- package/types/dalphabar.d.tlua +3 -6
- package/types/dbinder.d.tlua +4 -9
- package/types/dbubblecontainer.d.tlua +2 -3
- package/types/dbutton.d.tlua +8 -21
- package/types/dcheckbox.d.tlua +5 -12
- package/types/dcheckboxlabel.d.tlua +9 -27
- package/types/dcollapsiblecategory.d.tlua +23 -66
- package/types/dcolorbutton.d.tlua +7 -18
- package/types/dcolorcombo.d.tlua +5 -12
- package/types/dcolorcube.d.tlua +13 -36
- package/types/dcolormixer.d.tlua +27 -78
- package/types/dcolorpalette.d.tlua +23 -66
- package/types/dcolumnsheet.d.tlua +5 -12
- package/types/dcombobox.d.tlua +17 -48
- package/types/ddragbase.d.tlua +13 -36
- package/types/ddrawer.d.tlua +8 -21
- package/types/debug.d.tlua +44 -76
- package/types/debugoverlay.d.tlua +11 -33
- package/types/dentityproperties.d.tlua +5 -12
- package/types/derma.d.tlua +10 -30
- package/types/dexpandbutton.d.tlua +3 -6
- package/types/dfilebrowser.d.tlua +20 -60
- package/types/dform.d.tlua +18 -51
- package/types/dframe.d.tlua +24 -72
- package/types/dgrid.d.tlua +11 -30
- package/types/dhorizontaldivider.d.tlua +20 -57
- package/types/dhorizontalscroller.d.tlua +11 -30
- package/types/dhscrollbar.d.tlua +11 -30
- package/types/dhtml.d.tlua +8 -21
- package/types/dhtmlcontrols.d.tlua +5 -15
- package/types/diconbrowser.d.tlua +11 -30
- package/types/diconlayout.d.tlua +18 -51
- package/types/dimage.d.tlua +20 -55
- package/types/dimagebutton.d.tlua +9 -27
- package/types/dlabel.d.tlua +33 -96
- package/types/dlabeleditable.d.tlua +5 -12
- package/types/dlabelurl.d.tlua +10 -27
- package/types/dlistbox.d.tlua +8 -21
- package/types/dlistboxitem.d.tlua +4 -9
- package/types/dlistview.d.tlua +34 -99
- package/types/dlistview_column.d.tlua +14 -39
- package/types/dlistview_line.d.tlua +13 -36
- package/types/dmenu.d.tlua +28 -75
- package/types/dmenubar.d.tlua +6 -11
- package/types/dmenuoption.d.tlua +13 -36
- package/types/dmenuoptioncvar.d.tlua +6 -15
- package/types/dmodelpanel.d.tlua +22 -63
- package/types/dmodelselect.d.tlua +2 -3
- package/types/dmodelselectmulti.d.tlua +2 -3
- package/types/dnotify.d.tlua +10 -27
- package/types/dnumberscratch.d.tlua +26 -75
- package/types/dnumberwang.d.tlua +16 -45
- package/types/dnumslider.d.tlua +17 -51
- package/types/dpanel.d.tlua +14 -39
- package/types/dpanellist.d.tlua +11 -33
- package/types/dpaneloverlay.d.tlua +7 -18
- package/types/dpanpanel.d.tlua +6 -15
- package/types/dprogress.d.tlua +3 -6
- package/types/dproperties.d.tlua +4 -9
- package/types/dproperty_combo.d.tlua +3 -6
- package/types/dproperty_generic.d.tlua +5 -12
- package/types/dpropertysheet.d.tlua +26 -56
- package/types/dragndrop.d.tlua +10 -30
- package/types/draw.d.tlua +11 -31
- package/types/drgbpicker.d.tlua +4 -9
- package/types/drive.d.tlua +18 -41
- package/types/dscrollpanel.d.tlua +10 -30
- package/types/dshape.d.tlua +7 -18
- package/types/dsizetocontents.d.tlua +5 -12
- package/types/dslider.d.tlua +28 -81
- package/types/dsprite.d.tlua +9 -24
- package/types/dtab.d.tlua +8 -21
- package/types/dtextentry.d.tlua +43 -126
- package/types/dtilelayout.d.tlua +21 -60
- package/types/dtooltip.d.tlua +6 -15
- package/types/dtree.d.tlua +16 -45
- package/types/dtree_node.d.tlua +68 -201
- package/types/duplicator.d.tlua +30 -88
- package/types/dverticaldivider.d.tlua +23 -66
- package/types/dvscrollbar.d.tlua +11 -30
- package/types/effect.d.tlua +4 -9
- package/types/effects.d.tlua +6 -18
- package/types/engine.d.tlua +21 -63
- package/types/entity.d.tlua +676 -1962
- package/types/ents.d.tlua +23 -61
- package/types/file.d.tlua +39 -117
- package/types/frame_blend.d.tlua +7 -21
- package/types/game.d.tlua +39 -117
- package/types/gameevent.d.tlua +4 -8
- package/types/gamemode.d.tlua +3 -7
- package/types/gm.d.tlua +267 -800
- package/types/gmsave.d.tlua +4 -12
- package/types/gui.d.tlua +21 -63
- package/types/gwen.d.tlua +3 -9
- package/types/halo.d.tlua +2 -6
- package/types/hook.d.tlua +8 -17
- package/types/hook_events.d.tlua +2412 -0
- package/types/http.d.tlua +1 -3
- package/types/iconeditor.d.tlua +11 -30
- package/types/igmodaudiochannel.d.tlua +41 -122
- package/types/imagecheckbox.d.tlua +4 -9
- package/types/imaterial.d.tlua +26 -77
- package/types/imesh.d.tlua +5 -14
- package/types/input.d.tlua +24 -68
- package/types/irestore.d.tlua +9 -26
- package/types/isave.d.tlua +9 -26
- package/types/itexture.d.tlua +10 -29
- package/types/ivideowriter.d.tlua +5 -14
- package/types/jit.d.tlua +21 -53
- package/types/killicon.d.tlua +7 -21
- package/types/language.d.tlua +1 -3
- package/types/list.d.tlua +8 -24
- package/types/markup.d.tlua +2 -6
- package/types/markupobject.d.tlua +5 -14
- package/types/math.d.tlua +277 -447
- package/types/matproxy.d.tlua +3 -9
- package/types/matselect.d.tlua +11 -30
- package/types/menubar.d.tlua +2 -6
- package/types/mesh.d.tlua +19 -57
- package/types/motionsensor.d.tlua +10 -30
- package/types/navmesh.d.tlua +26 -78
- package/types/net.d.tlua +52 -154
- package/types/nextbot.d.tlua +46 -116
- package/types/notification.d.tlua +2 -6
- package/types/npc.d.tlua +182 -543
- package/types/numpad.d.tlua +7 -21
- package/types/os.d.tlua +4 -10
- package/types/panel.d.tlua +333 -991
- package/types/pathfollower.d.tlua +31 -92
- package/types/permissions.d.tlua +6 -18
- package/types/physcollide.d.tlua +3 -8
- package/types/physenv.d.tlua +11 -33
- package/types/physobj.d.tlua +78 -233
- package/types/player.d.tlua +302 -880
- package/types/player_manager.d.tlua +13 -39
- package/types/presets.d.tlua +6 -18
- package/types/projectedtexture.d.tlua +48 -143
- package/types/properties.d.tlua +5 -15
- package/types/propselect.d.tlua +5 -12
- package/types/render.d.tlua +142 -426
- package/types/resource.d.tlua +2 -6
- package/types/sandbox.d.tlua +54 -159
- package/types/saverestore.d.tlua +12 -36
- package/types/schedule.d.tlua +6 -17
- package/types/scripted_ents.d.tlua +11 -29
- package/types/search.d.tlua +1 -3
- package/types/serverlist.d.tlua +7 -21
- package/types/sound.d.tlua +10 -30
- package/types/spawnicon.d.tlua +8 -21
- package/types/spawnmenu.d.tlua +24 -70
- package/types/spawnmenucontentpanel.d.tlua +5 -12
- package/types/sql.d.tlua +9 -27
- package/types/stack.d.tlua +5 -14
- package/types/steamworks.d.tlua +18 -54
- package/types/string.d.tlua +49 -141
- package/types/surface.d.tlua +34 -102
- package/types/surfaceinfo.d.tlua +5 -14
- package/types/system.d.tlua +10 -30
- package/types/table.d.tlua +47 -137
- package/types/task.d.tlua +9 -26
- package/types/team.d.tlua +19 -57
- package/types/timer.d.tlua +14 -42
- package/types/tool.d.tlua +46 -131
- package/types/ugcpublishwindow.d.tlua +9 -24
- package/types/umsg.d.tlua +12 -36
- package/types/undo.d.tlua +10 -30
- package/types/usermessage.d.tlua +2 -6
- package/types/utf8.d.tlua +7 -21
- package/types/util.d.tlua +94 -274
- package/types/vector.d.tlua +36 -108
- package/types/vehicle.d.tlua +52 -149
- package/types/vgui.d.tlua +18 -46
- package/types/vmatrix.d.tlua +35 -105
- package/types/weapon.d.tlua +85 -248
- package/types/weapons.d.tlua +6 -16
- package/types/widgets.d.tlua +1 -3
- package/types/workshopfilebase.d.tlua +5 -14
package/types/render.d.tlua
CHANGED
|
@@ -16,9 +16,6 @@ interface RenderLib {
|
|
|
16
16
|
* @source https://wiki.facepunch.com/gmod/render.AddBeam
|
|
17
17
|
*/
|
|
18
18
|
AddBeam(startPos: Vector, width: number, textureEnd: number, color: Color): void;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
interface RenderLib {
|
|
22
19
|
/**
|
|
23
20
|
* Blurs the render target ( or a given texture ).
|
|
24
21
|
*
|
|
@@ -29,18 +26,12 @@ interface RenderLib {
|
|
|
29
26
|
* @source https://wiki.facepunch.com/gmod/render.BlurRenderTarget
|
|
30
27
|
*/
|
|
31
28
|
BlurRenderTarget(rendertarget: ITexture, blurx: number, blury: number, passes: number): void;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
interface RenderLib {
|
|
35
29
|
/**
|
|
36
30
|
* This function overrides the brush material for next render operations. It can be used with [Entity:DrawModel](https://wiki.facepunch.com/gmod/Entity:DrawModel).
|
|
37
31
|
* @realm client
|
|
38
32
|
* @source https://wiki.facepunch.com/gmod/render.BrushMaterialOverride
|
|
39
33
|
*/
|
|
40
34
|
BrushMaterialOverride(mat?: IMaterial): void;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
interface RenderLib {
|
|
44
35
|
/**
|
|
45
36
|
* Captures a part of the current render target and returns the data as a binary string in the given format.
|
|
46
37
|
*
|
|
@@ -58,9 +49,6 @@ interface RenderLib {
|
|
|
58
49
|
* @source https://wiki.facepunch.com/gmod/render.Capture
|
|
59
50
|
*/
|
|
60
51
|
Capture(captureData: RenderCaptureData): string;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
interface RenderLib {
|
|
64
52
|
/**
|
|
65
53
|
* Dumps the current render target and allows the pixels to be accessed by [render.ReadPixel](https://wiki.facepunch.com/gmod/render.ReadPixel).
|
|
66
54
|
*
|
|
@@ -72,9 +60,6 @@ interface RenderLib {
|
|
|
72
60
|
* @source https://wiki.facepunch.com/gmod/render.CapturePixels
|
|
73
61
|
*/
|
|
74
62
|
CapturePixels(): void;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
interface RenderLib {
|
|
78
63
|
/**
|
|
79
64
|
* Clears the current render target and the specified buffers.
|
|
80
65
|
*
|
|
@@ -84,9 +69,6 @@ interface RenderLib {
|
|
|
84
69
|
* @source https://wiki.facepunch.com/gmod/render.Clear
|
|
85
70
|
*/
|
|
86
71
|
Clear(r: number, g: number, b: number, a: number, clearDepth?: boolean, clearStencil?: boolean): void;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
interface RenderLib {
|
|
90
72
|
/**
|
|
91
73
|
* Tests every pixel of the active [Render Target](https://wiki.facepunch.com/gmod/render_rendertargets) against the current Stencil configuration and sets the Color Channel values and, optionally, the Depth Buffer values for every pixel that passes.
|
|
92
74
|
*
|
|
@@ -100,9 +82,6 @@ interface RenderLib {
|
|
|
100
82
|
* @source https://wiki.facepunch.com/gmod/render.ClearBuffersObeyStencil
|
|
101
83
|
*/
|
|
102
84
|
ClearBuffersObeyStencil(red: number, green: number, blue: number, alpha: number, clearDepth: boolean): void;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
interface RenderLib {
|
|
106
85
|
/**
|
|
107
86
|
* Resets the depth buffer.
|
|
108
87
|
*
|
|
@@ -110,9 +89,6 @@ interface RenderLib {
|
|
|
110
89
|
* @source https://wiki.facepunch.com/gmod/render.ClearDepth
|
|
111
90
|
*/
|
|
112
91
|
ClearDepth(clearStencil?: boolean): void;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
interface RenderLib {
|
|
116
92
|
/**
|
|
117
93
|
* Clears a render target.
|
|
118
94
|
*
|
|
@@ -122,9 +98,6 @@ interface RenderLib {
|
|
|
122
98
|
* @source https://wiki.facepunch.com/gmod/render.ClearRenderTarget
|
|
123
99
|
*/
|
|
124
100
|
ClearRenderTarget(texture: ITexture, color: Color): void;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
interface RenderLib {
|
|
128
101
|
/**
|
|
129
102
|
* Sets the Stencil Buffer value to `0` for all pixels in the currently active [Render Target](https://wiki.facepunch.com/gmod/render_rendertargets).
|
|
130
103
|
*
|
|
@@ -134,9 +107,6 @@ interface RenderLib {
|
|
|
134
107
|
* @source https://wiki.facepunch.com/gmod/render.ClearStencil
|
|
135
108
|
*/
|
|
136
109
|
ClearStencil(): void;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
interface RenderLib {
|
|
140
110
|
/**
|
|
141
111
|
* Sets the Stencil Buffer value for every pixel in a given rectangle to a given value.
|
|
142
112
|
*
|
|
@@ -148,9 +118,6 @@ interface RenderLib {
|
|
|
148
118
|
* @source https://wiki.facepunch.com/gmod/render.ClearStencilBufferRectangle
|
|
149
119
|
*/
|
|
150
120
|
ClearStencilBufferRectangle(startX: number, startY: number, endX: number, endY: number, stencilBufferValue: number): void;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
interface RenderLib {
|
|
154
121
|
/**
|
|
155
122
|
* Calculates the lighting caused by dynamic lights (such as [Global.DynamicLight](https://wiki.facepunch.com/gmod/Global.DynamicLight) and the Light Sandbox tool) for the specified surface. This will not include map ambient light.
|
|
156
123
|
*
|
|
@@ -160,9 +127,6 @@ interface RenderLib {
|
|
|
160
127
|
* @source https://wiki.facepunch.com/gmod/render.ComputeDynamicLighting
|
|
161
128
|
*/
|
|
162
129
|
ComputeDynamicLighting(position: Vector, normal: Vector): Vector;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
interface RenderLib {
|
|
166
130
|
/**
|
|
167
131
|
* Calculates the light color at a certain position.
|
|
168
132
|
*
|
|
@@ -176,9 +140,6 @@ interface RenderLib {
|
|
|
176
140
|
* @source https://wiki.facepunch.com/gmod/render.ComputeLighting
|
|
177
141
|
*/
|
|
178
142
|
ComputeLighting(position: Vector, normal: Vector): Vector;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
interface RenderLib {
|
|
182
143
|
/**
|
|
183
144
|
* Calculates diameter of a 3D sphere on a 2D screen.
|
|
184
145
|
*
|
|
@@ -188,9 +149,6 @@ interface RenderLib {
|
|
|
188
149
|
* @source https://wiki.facepunch.com/gmod/render.ComputePixelDiameterOfSphere
|
|
189
150
|
*/
|
|
190
151
|
ComputePixelDiameterOfSphere(point: Vector, radius: number): number;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
interface RenderLib {
|
|
194
152
|
/**
|
|
195
153
|
* Copies the currently active Render Target to the specified texture.
|
|
196
154
|
* **WARNING**: This does not copy the Depth buffer, no method for that is known at this moment so a common workaround is to store the source texture somewhere else, perform your drawing operations, save the result somewhere else and reapply the source texture.
|
|
@@ -200,9 +158,6 @@ interface RenderLib {
|
|
|
200
158
|
* @source https://wiki.facepunch.com/gmod/render.CopyRenderTargetToTexture
|
|
201
159
|
*/
|
|
202
160
|
CopyRenderTargetToTexture(Target: ITexture): void;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
interface RenderLib {
|
|
206
161
|
/**
|
|
207
162
|
* Copies the contents of one texture to another. Only works with rendertargets.
|
|
208
163
|
* **WARNING**: This does not copy the Depth buffer, no method for that is known at this moment so a common workaround is to store the source texture somewhere else, perform your drawing operations, save the result somewhere else and reapply the source texture.
|
|
@@ -212,27 +167,18 @@ interface RenderLib {
|
|
|
212
167
|
* @source https://wiki.facepunch.com/gmod/render.CopyTexture
|
|
213
168
|
*/
|
|
214
169
|
CopyTexture(texture_from: ITexture, texture_to: ITexture): void;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
interface RenderLib {
|
|
218
170
|
/**
|
|
219
171
|
* Sets the cull mode. The culling mode defines how back faces are culled when rendering geometry.
|
|
220
172
|
* @realm client and menu
|
|
221
173
|
* @source https://wiki.facepunch.com/gmod/render.CullMode
|
|
222
174
|
*/
|
|
223
175
|
CullMode(cullMode: number): void;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
interface RenderLib {
|
|
227
176
|
/**
|
|
228
177
|
* Set's the depth range of the upcoming render.
|
|
229
178
|
* @realm client
|
|
230
179
|
* @source https://wiki.facepunch.com/gmod/render.DepthRange
|
|
231
180
|
*/
|
|
232
181
|
DepthRange(depthmin: number, depthmax: number): void;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
interface RenderLib {
|
|
236
182
|
/**
|
|
237
183
|
* Draws a single-segment Beam made out of a textured, billboarded quad stretching between two points.
|
|
238
184
|
*
|
|
@@ -242,9 +188,6 @@ interface RenderLib {
|
|
|
242
188
|
* @source https://wiki.facepunch.com/gmod/render.DrawBeam
|
|
243
189
|
*/
|
|
244
190
|
DrawBeam(startPos: Vector, endPos: Vector, width: number, textureStart: number, textureEnd: number, color?: Color): void;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
interface RenderLib {
|
|
248
191
|
/**
|
|
249
192
|
* Draws a box in 3D space.
|
|
250
193
|
*
|
|
@@ -254,9 +197,6 @@ interface RenderLib {
|
|
|
254
197
|
* @source https://wiki.facepunch.com/gmod/render.DrawBox
|
|
255
198
|
*/
|
|
256
199
|
DrawBox(position: Vector, angles: Angle, mins: Vector, maxs: Vector, color?: Color): void;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
interface RenderLib {
|
|
260
200
|
/**
|
|
261
201
|
* Draws a line in 3D space.
|
|
262
202
|
*
|
|
@@ -266,9 +206,6 @@ interface RenderLib {
|
|
|
266
206
|
* @source https://wiki.facepunch.com/gmod/render.DrawLine
|
|
267
207
|
*/
|
|
268
208
|
DrawLine(startPos: Vector, endPos: Vector, color?: Color, writeZ?: boolean): void;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
interface RenderLib {
|
|
272
209
|
/**
|
|
273
210
|
* Draws 2 connected triangles. Expects material to be set by [render.SetMaterial](https://wiki.facepunch.com/gmod/render.SetMaterial).
|
|
274
211
|
*
|
|
@@ -278,9 +215,6 @@ interface RenderLib {
|
|
|
278
215
|
* @source https://wiki.facepunch.com/gmod/render.DrawQuad
|
|
279
216
|
*/
|
|
280
217
|
DrawQuad(vert1: Vector, vert2: Vector, vert3: Vector, vert4: Vector, color?: Color): void;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
interface RenderLib {
|
|
284
218
|
/**
|
|
285
219
|
* Draws a quad. Expects material to be set by [render.SetMaterial](https://wiki.facepunch.com/gmod/render.SetMaterial).
|
|
286
220
|
*
|
|
@@ -290,9 +224,6 @@ interface RenderLib {
|
|
|
290
224
|
* @source https://wiki.facepunch.com/gmod/render.DrawQuadEasy
|
|
291
225
|
*/
|
|
292
226
|
DrawQuadEasy(position: Vector, normal: Vector, width: number, height: number, color: Color, rotation?: number): void;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
interface RenderLib {
|
|
296
227
|
/**
|
|
297
228
|
* Draws the current material set by [render.SetMaterial](https://wiki.facepunch.com/gmod/render.SetMaterial) to the whole screen. The color cannot be customized.
|
|
298
229
|
*
|
|
@@ -304,9 +235,6 @@ interface RenderLib {
|
|
|
304
235
|
* @source https://wiki.facepunch.com/gmod/render.DrawScreenQuad
|
|
305
236
|
*/
|
|
306
237
|
DrawScreenQuad(applyPoster?: boolean): void;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
interface RenderLib {
|
|
310
238
|
/**
|
|
311
239
|
* Draws the current material set by [render.SetMaterial](https://wiki.facepunch.com/gmod/render.SetMaterial) to the area specified. Color cannot be customized.
|
|
312
240
|
*
|
|
@@ -318,9 +246,6 @@ interface RenderLib {
|
|
|
318
246
|
* @source https://wiki.facepunch.com/gmod/render.DrawScreenQuadEx
|
|
319
247
|
*/
|
|
320
248
|
DrawScreenQuadEx(startX: number, startY: number, width: number, height: number): void;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
interface RenderLib {
|
|
324
249
|
/**
|
|
325
250
|
* Draws a sphere in 3D space. The material previously set with [render.SetMaterial](https://wiki.facepunch.com/gmod/render.SetMaterial) will be applied the sphere's surface.
|
|
326
251
|
*
|
|
@@ -332,9 +257,6 @@ interface RenderLib {
|
|
|
332
257
|
* @source https://wiki.facepunch.com/gmod/render.DrawSphere
|
|
333
258
|
*/
|
|
334
259
|
DrawSphere(position: Vector, radius: number, longitudeSteps: number, latitudeSteps: number, color?: Color): void;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
interface RenderLib {
|
|
338
260
|
/**
|
|
339
261
|
* Draws a sprite in 3D space.
|
|
340
262
|
*
|
|
@@ -344,9 +266,6 @@ interface RenderLib {
|
|
|
344
266
|
* @source https://wiki.facepunch.com/gmod/render.DrawSprite
|
|
345
267
|
*/
|
|
346
268
|
DrawSprite(position: Vector, width: number, height: number, color?: Color): void;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
interface RenderLib {
|
|
350
269
|
/**
|
|
351
270
|
* Draws a texture over the whole screen.
|
|
352
271
|
*
|
|
@@ -356,9 +275,6 @@ interface RenderLib {
|
|
|
356
275
|
* @source https://wiki.facepunch.com/gmod/render.DrawTextureToScreen
|
|
357
276
|
*/
|
|
358
277
|
DrawTextureToScreen(tex: ITexture): void;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
interface RenderLib {
|
|
362
278
|
/**
|
|
363
279
|
* Draws a textured rectangle.
|
|
364
280
|
*
|
|
@@ -368,9 +284,6 @@ interface RenderLib {
|
|
|
368
284
|
* @source https://wiki.facepunch.com/gmod/render.DrawTextureToScreenRect
|
|
369
285
|
*/
|
|
370
286
|
DrawTextureToScreenRect(tex: ITexture, x: number, y: number, width: number, height: number): void;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
interface RenderLib {
|
|
374
287
|
/**
|
|
375
288
|
* Draws a wireframe box in 3D space.
|
|
376
289
|
*
|
|
@@ -380,9 +293,6 @@ interface RenderLib {
|
|
|
380
293
|
* @source https://wiki.facepunch.com/gmod/render.DrawWireframeBox
|
|
381
294
|
*/
|
|
382
295
|
DrawWireframeBox(position: Vector, angle: Angle, mins: Vector, maxs: Vector, color?: Color, writeZ?: boolean): void;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
interface RenderLib {
|
|
386
296
|
/**
|
|
387
297
|
* Draws a wireframe sphere in 3d space.
|
|
388
298
|
*
|
|
@@ -392,9 +302,6 @@ interface RenderLib {
|
|
|
392
302
|
* @source https://wiki.facepunch.com/gmod/render.DrawWireframeSphere
|
|
393
303
|
*/
|
|
394
304
|
DrawWireframeSphere(position: Vector, radius: number, longitudeSteps: number, latitudeSteps: number, color?: Color, writeZ?: boolean): void;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
interface RenderLib {
|
|
398
305
|
/**
|
|
399
306
|
* Sets the status of the clip renderer, returning previous state.
|
|
400
307
|
*
|
|
@@ -405,9 +312,6 @@ interface RenderLib {
|
|
|
405
312
|
* @source https://wiki.facepunch.com/gmod/render.EnableClipping
|
|
406
313
|
*/
|
|
407
314
|
EnableClipping(state: boolean): boolean;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
interface RenderLib {
|
|
411
315
|
/**
|
|
412
316
|
* Ends the beam mesh of a beam started with [render.StartBeam](https://wiki.facepunch.com/gmod/render.StartBeam).
|
|
413
317
|
*
|
|
@@ -417,54 +321,36 @@ interface RenderLib {
|
|
|
417
321
|
* @source https://wiki.facepunch.com/gmod/render.EndBeam
|
|
418
322
|
*/
|
|
419
323
|
EndBeam(): void;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
interface RenderLib {
|
|
423
324
|
/**
|
|
424
325
|
* Sets the color of the fog.
|
|
425
326
|
* @realm client
|
|
426
327
|
* @source https://wiki.facepunch.com/gmod/render.FogColor
|
|
427
328
|
*/
|
|
428
329
|
FogColor(red: number, green: number, blue: number): void;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
interface RenderLib {
|
|
432
330
|
/**
|
|
433
331
|
* Sets the at which the fog reaches its max density.
|
|
434
332
|
* @realm client
|
|
435
333
|
* @source https://wiki.facepunch.com/gmod/render.FogEnd
|
|
436
334
|
*/
|
|
437
335
|
FogEnd(distance: number): void;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
interface RenderLib {
|
|
441
336
|
/**
|
|
442
337
|
* Sets the maximum density of the fog.
|
|
443
338
|
* @realm client
|
|
444
339
|
* @source https://wiki.facepunch.com/gmod/render.FogMaxDensity
|
|
445
340
|
*/
|
|
446
341
|
FogMaxDensity(maxDensity: number): void;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
interface RenderLib {
|
|
450
342
|
/**
|
|
451
343
|
* Sets the mode of fog.
|
|
452
344
|
* @realm client
|
|
453
345
|
* @source https://wiki.facepunch.com/gmod/render.FogMode
|
|
454
346
|
*/
|
|
455
347
|
FogMode(fogMode: MATERIAL_FOG): void;
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
interface RenderLib {
|
|
459
348
|
/**
|
|
460
349
|
* Sets the distance at which the fog starts showing up.
|
|
461
350
|
* @realm client
|
|
462
351
|
* @source https://wiki.facepunch.com/gmod/render.FogStart
|
|
463
352
|
*/
|
|
464
353
|
FogStart(fogStart: number): void;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
interface RenderLib {
|
|
468
354
|
/**
|
|
469
355
|
* Returns the ambient color intensity of the map, basically the color the sky emits.
|
|
470
356
|
*
|
|
@@ -476,18 +362,12 @@ interface RenderLib {
|
|
|
476
362
|
* @source https://wiki.facepunch.com/gmod/render.GetAmbientLightColor
|
|
477
363
|
*/
|
|
478
364
|
GetAmbientLightColor(): Vector;
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
interface RenderLib {
|
|
482
365
|
/**
|
|
483
366
|
* Returns the current alpha blending.
|
|
484
367
|
* @realm client
|
|
485
368
|
* @source https://wiki.facepunch.com/gmod/render.GetBlend
|
|
486
369
|
*/
|
|
487
370
|
GetBlend(): number;
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
interface RenderLib {
|
|
491
371
|
/**
|
|
492
372
|
* **INTERNAL**: You can use [Global.GetRenderTargetEx](https://wiki.facepunch.com/gmod/Global.GetRenderTargetEx) if you need to create a Render Target
|
|
493
373
|
*
|
|
@@ -497,9 +377,6 @@ interface RenderLib {
|
|
|
497
377
|
* @source https://wiki.facepunch.com/gmod/render.GetBloomTex0
|
|
498
378
|
*/
|
|
499
379
|
GetBloomTex0(): ITexture;
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
interface RenderLib {
|
|
503
380
|
/**
|
|
504
381
|
* **INTERNAL**: You probably want to just use a custom render target. See [Global.GetRenderTargetEx](https://wiki.facepunch.com/gmod/Global.GetRenderTargetEx).
|
|
505
382
|
*
|
|
@@ -512,54 +389,36 @@ interface RenderLib {
|
|
|
512
389
|
* @source https://wiki.facepunch.com/gmod/render.GetBloomTex1
|
|
513
390
|
*/
|
|
514
391
|
GetBloomTex1(): ITexture;
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
interface RenderLib {
|
|
518
392
|
/**
|
|
519
393
|
* Returns the current color modulation values as normals.
|
|
520
394
|
* @realm client
|
|
521
395
|
* @source https://wiki.facepunch.com/gmod/render.GetColorModulation
|
|
522
396
|
*/
|
|
523
397
|
GetColorModulation(): (number, number, number);
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
interface RenderLib {
|
|
527
398
|
/**
|
|
528
399
|
* Returns the maximum available directX version.
|
|
529
400
|
* @realm client and menu
|
|
530
401
|
* @source https://wiki.facepunch.com/gmod/render.GetDXLevel
|
|
531
402
|
*/
|
|
532
403
|
GetDXLevel(): number;
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
interface RenderLib {
|
|
536
404
|
/**
|
|
537
405
|
* Returns the current fog color.
|
|
538
406
|
* @realm client
|
|
539
407
|
* @source https://wiki.facepunch.com/gmod/render.GetFogColor
|
|
540
408
|
*/
|
|
541
409
|
GetFogColor(): (number, number, number);
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
interface RenderLib {
|
|
545
410
|
/**
|
|
546
411
|
* Returns the fog start and end distance.
|
|
547
412
|
* @realm client
|
|
548
413
|
* @source https://wiki.facepunch.com/gmod/render.GetFogDistances
|
|
549
414
|
*/
|
|
550
415
|
GetFogDistances(): (number, number, number);
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
interface RenderLib {
|
|
554
416
|
/**
|
|
555
417
|
* Get the maximum density of the fog.
|
|
556
418
|
* @realm client
|
|
557
419
|
* @source https://wiki.facepunch.com/gmod/render.GetFogMaxDensity
|
|
558
420
|
*/
|
|
559
421
|
GetFogMaxDensity(): number;
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
interface RenderLib {
|
|
563
422
|
/**
|
|
564
423
|
* Returns the current fog mode.
|
|
565
424
|
*
|
|
@@ -567,9 +426,6 @@ interface RenderLib {
|
|
|
567
426
|
* @source https://wiki.facepunch.com/gmod/render.GetFogMode
|
|
568
427
|
*/
|
|
569
428
|
GetFogMode(): number;
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
interface RenderLib {
|
|
573
429
|
/**
|
|
574
430
|
* Returns the full screen depth texture.
|
|
575
431
|
* @realm client
|
|
@@ -577,18 +433,12 @@ interface RenderLib {
|
|
|
577
433
|
* @deprecated Alias of render.GetPowerOfTwoTexture in practice.
|
|
578
434
|
*/
|
|
579
435
|
GetFullScreenDepthTexture(): ITexture;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
interface RenderLib {
|
|
583
436
|
/**
|
|
584
437
|
* Returns whether HDR is currently enabled or not. This takes into account hardware support, current map and current client settings.
|
|
585
438
|
* @realm client and menu
|
|
586
439
|
* @source https://wiki.facepunch.com/gmod/render.GetHDREnabled
|
|
587
440
|
*/
|
|
588
441
|
GetHDREnabled(): boolean;
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
interface RenderLib {
|
|
592
442
|
/**
|
|
593
443
|
* Gets the light exposure on the specified position.
|
|
594
444
|
*
|
|
@@ -599,9 +449,6 @@ interface RenderLib {
|
|
|
599
449
|
* @deprecated Same as render.ComputeLighting without the `normal` argument provided, so just use that
|
|
600
450
|
*/
|
|
601
451
|
GetLightColor(position: Vector): Vector;
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
interface RenderLib {
|
|
605
452
|
/**
|
|
606
453
|
* **INTERNAL**: You probably want to just use a custom render target. See [Global.GetRenderTargetEx](https://wiki.facepunch.com/gmod/Global.GetRenderTargetEx).
|
|
607
454
|
*
|
|
@@ -611,9 +458,6 @@ interface RenderLib {
|
|
|
611
458
|
* @source https://wiki.facepunch.com/gmod/render.GetMoBlurTex0
|
|
612
459
|
*/
|
|
613
460
|
GetMoBlurTex0(): ITexture;
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
interface RenderLib {
|
|
617
461
|
/**
|
|
618
462
|
* **INTERNAL**: You probably want to just use a custom render target. See [Global.GetRenderTargetEx](https://wiki.facepunch.com/gmod/Global.GetRenderTargetEx).
|
|
619
463
|
*
|
|
@@ -623,9 +467,6 @@ interface RenderLib {
|
|
|
623
467
|
* @source https://wiki.facepunch.com/gmod/render.GetMoBlurTex1
|
|
624
468
|
*/
|
|
625
469
|
GetMoBlurTex1(): ITexture;
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
interface RenderLib {
|
|
629
470
|
/**
|
|
630
471
|
* **INTERNAL**: You probably want to just use a custom render target. See [Global.GetRenderTargetEx](https://wiki.facepunch.com/gmod/Global.GetRenderTargetEx).
|
|
631
472
|
*
|
|
@@ -637,9 +478,6 @@ interface RenderLib {
|
|
|
637
478
|
* @source https://wiki.facepunch.com/gmod/render.GetMorphTex0
|
|
638
479
|
*/
|
|
639
480
|
GetMorphTex0(): ITexture;
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
interface RenderLib {
|
|
643
481
|
/**
|
|
644
482
|
* **INTERNAL**: You probably want to just use a custom render target. See [Global.GetRenderTargetEx](https://wiki.facepunch.com/gmod/Global.GetRenderTargetEx).
|
|
645
483
|
*
|
|
@@ -652,18 +490,12 @@ interface RenderLib {
|
|
|
652
490
|
* @source https://wiki.facepunch.com/gmod/render.GetMorphTex1
|
|
653
491
|
*/
|
|
654
492
|
GetMorphTex1(): ITexture;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
interface RenderLib {
|
|
658
493
|
/**
|
|
659
494
|
* Returns the Power Of Two Frame Buffer texture.
|
|
660
495
|
* @realm client
|
|
661
496
|
* @source https://wiki.facepunch.com/gmod/render.GetPowerOfTwoTexture
|
|
662
497
|
*/
|
|
663
498
|
GetPowerOfTwoTexture(): ITexture;
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
interface RenderLib {
|
|
667
499
|
/**
|
|
668
500
|
* Alias of [render.GetPowerOfTwoTexture](https://wiki.facepunch.com/gmod/render.GetPowerOfTwoTexture).
|
|
669
501
|
* @realm client
|
|
@@ -671,9 +503,6 @@ interface RenderLib {
|
|
|
671
503
|
* @deprecated Alias of render.GetPowerOfTwoTexture.
|
|
672
504
|
*/
|
|
673
505
|
GetRefractTexture(): ITexture;
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
interface RenderLib {
|
|
677
506
|
/**
|
|
678
507
|
* Returns the currently active render target.
|
|
679
508
|
*
|
|
@@ -683,18 +512,12 @@ interface RenderLib {
|
|
|
683
512
|
* @source https://wiki.facepunch.com/gmod/render.GetRenderTarget
|
|
684
513
|
*/
|
|
685
514
|
GetRenderTarget(): ITexture;
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
interface RenderLib {
|
|
689
515
|
/**
|
|
690
516
|
* Returns the `_rt_ResolvedFullFrameDepth` texture for SSAO depth. It will only be updated if [GM:NeedsDepthPass](https://wiki.facepunch.com/gmod/GM:NeedsDepthPass) returns true. Depth is written using the [Shaders/DepthWrite](https://wiki.facepunch.com/gmod/Shaders/DepthWrite) by rendering scene a second time, using [SSAO_DepthPass function](https://github.com/ValveSoftware/source-sdk-2013/blob/11a677c349b149b2f77184dc903e6bb17f8df69b/src/game/client/viewrender.cpp#L5576).
|
|
691
517
|
* @realm client
|
|
692
518
|
* @source https://wiki.facepunch.com/gmod/render.GetResolvedFullFrameDepth
|
|
693
519
|
*/
|
|
694
520
|
GetResolvedFullFrameDepth(): ITexture;
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
interface RenderLib {
|
|
698
521
|
/**
|
|
699
522
|
* Obtain an [ITexture](https://wiki.facepunch.com/gmod/ITexture) of the screen. You must call [render.UpdateScreenEffectTexture](https://wiki.facepunch.com/gmod/render.UpdateScreenEffectTexture) in order to update this texture with the currently rendered scene.
|
|
700
523
|
*
|
|
@@ -704,27 +527,18 @@ interface RenderLib {
|
|
|
704
527
|
* @source https://wiki.facepunch.com/gmod/render.GetScreenEffectTexture
|
|
705
528
|
*/
|
|
706
529
|
GetScreenEffectTexture(textureIndex?: number): ITexture;
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
interface RenderLib {
|
|
710
530
|
/**
|
|
711
531
|
* Returns the first quarter sized frame buffer texture.
|
|
712
532
|
* @realm client
|
|
713
533
|
* @source https://wiki.facepunch.com/gmod/render.GetSmallTex0
|
|
714
534
|
*/
|
|
715
535
|
GetSmallTex0(): ITexture;
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
interface RenderLib {
|
|
719
536
|
/**
|
|
720
537
|
* Returns the second quarter sized frame buffer texture.
|
|
721
538
|
* @realm client
|
|
722
539
|
* @source https://wiki.facepunch.com/gmod/render.GetSmallTex1
|
|
723
540
|
*/
|
|
724
541
|
GetSmallTex1(): ITexture;
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
interface RenderLib {
|
|
728
542
|
/**
|
|
729
543
|
* Returns a floating point texture (RGBA16161616F format) the same resolution as the screen.
|
|
730
544
|
*
|
|
@@ -735,45 +549,30 @@ interface RenderLib {
|
|
|
735
549
|
* @source https://wiki.facepunch.com/gmod/render.GetSuperFPTex
|
|
736
550
|
*/
|
|
737
551
|
GetSuperFPTex(): ITexture;
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
interface RenderLib {
|
|
741
552
|
/**
|
|
742
553
|
* See [render.GetSuperFPTex](https://wiki.facepunch.com/gmod/render.GetSuperFPTex).
|
|
743
554
|
* @realm client
|
|
744
555
|
* @source https://wiki.facepunch.com/gmod/render.GetSuperFPTex2
|
|
745
556
|
*/
|
|
746
557
|
GetSuperFPTex2(): ITexture;
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
interface RenderLib {
|
|
750
558
|
/**
|
|
751
559
|
* Performs a render trace and returns the color of the surface hit, this uses a low res version of the texture.
|
|
752
560
|
* @realm client
|
|
753
561
|
* @source https://wiki.facepunch.com/gmod/render.GetSurfaceColor
|
|
754
562
|
*/
|
|
755
563
|
GetSurfaceColor(startPos: Vector, endPos: Vector): Vector;
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
interface RenderLib {
|
|
759
564
|
/**
|
|
760
565
|
* Returns a vector representing linear tone mapping scale. See [render.SetToneMappingScaleLinear](https://wiki.facepunch.com/gmod/render.SetToneMappingScaleLinear) for details.
|
|
761
566
|
* @realm client
|
|
762
567
|
* @source https://wiki.facepunch.com/gmod/render.GetToneMappingScaleLinear
|
|
763
568
|
*/
|
|
764
569
|
GetToneMappingScaleLinear(): Vector;
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
interface RenderLib {
|
|
768
570
|
/**
|
|
769
571
|
* Returns the current view setup.
|
|
770
572
|
* @realm client
|
|
771
573
|
* @source https://wiki.facepunch.com/gmod/render.GetViewSetup
|
|
772
574
|
*/
|
|
773
575
|
GetViewSetup(noPlayer?: boolean): table;
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
interface RenderLib {
|
|
777
576
|
/**
|
|
778
577
|
* Lets you know when a screenshot is being taken during rendering hooks.
|
|
779
578
|
*
|
|
@@ -783,9 +582,6 @@ interface RenderLib {
|
|
|
783
582
|
* @source https://wiki.facepunch.com/gmod/render.IsTakingScreenshot
|
|
784
583
|
*/
|
|
785
584
|
IsTakingScreenshot(): boolean;
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
interface RenderLib {
|
|
789
585
|
/**
|
|
790
586
|
* Sets the render material override for all next calls of [Entity:DrawModel](https://wiki.facepunch.com/gmod/Entity:DrawModel). Also overrides [render.MaterialOverrideByIndex](https://wiki.facepunch.com/gmod/render.MaterialOverrideByIndex).
|
|
791
587
|
*
|
|
@@ -798,9 +594,6 @@ interface RenderLib {
|
|
|
798
594
|
* @source https://wiki.facepunch.com/gmod/render.MaterialOverride
|
|
799
595
|
*/
|
|
800
596
|
MaterialOverride(material?: IMaterial | nil): void;
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
interface RenderLib {
|
|
804
597
|
/**
|
|
805
598
|
* Similar to [render.MaterialOverride](https://wiki.facepunch.com/gmod/render.MaterialOverride), but overrides the materials per index. For simple entities you may want to just use [Entity:SetSubMaterial](https://wiki.facepunch.com/gmod/Entity:SetSubMaterial).
|
|
806
599
|
*
|
|
@@ -810,27 +603,18 @@ interface RenderLib {
|
|
|
810
603
|
* @source https://wiki.facepunch.com/gmod/render.MaterialOverrideByIndex
|
|
811
604
|
*/
|
|
812
605
|
MaterialOverrideByIndex(index?: number, material?: IMaterial): void;
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
interface RenderLib {
|
|
816
606
|
/**
|
|
817
607
|
* Returns the maximum texture height the renderer can handle.
|
|
818
608
|
* @realm client and menu
|
|
819
609
|
* @source https://wiki.facepunch.com/gmod/render.MaxTextureHeight
|
|
820
610
|
*/
|
|
821
611
|
MaxTextureHeight(): number;
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
interface RenderLib {
|
|
825
612
|
/**
|
|
826
613
|
* Returns the maximum texture width the renderer can handle.
|
|
827
614
|
* @realm client and menu
|
|
828
615
|
* @source https://wiki.facepunch.com/gmod/render.MaxTextureWidth
|
|
829
616
|
*/
|
|
830
617
|
MaxTextureWidth(): number;
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
interface RenderLib {
|
|
834
618
|
/**
|
|
835
619
|
* Creates a new [Global.ClientsideModel](https://wiki.facepunch.com/gmod/Global.ClientsideModel), renders it at the specified pos/ang, and removes it. Can also be given an existing [CSEnt](https://wiki.facepunch.com/gmod/CSEnt) to reuse instead.
|
|
836
620
|
*
|
|
@@ -843,9 +627,6 @@ interface RenderLib {
|
|
|
843
627
|
* @source https://wiki.facepunch.com/gmod/render.Model
|
|
844
628
|
*/
|
|
845
629
|
Model(settings: table, ent?: CSEnt): void;
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
interface RenderLib {
|
|
849
630
|
/**
|
|
850
631
|
* Forces all future draw operations to use a specific [IMaterial](https://wiki.facepunch.com/gmod/IMaterial).
|
|
851
632
|
*
|
|
@@ -858,9 +639,6 @@ interface RenderLib {
|
|
|
858
639
|
* @source https://wiki.facepunch.com/gmod/render.ModelMaterialOverride
|
|
859
640
|
*/
|
|
860
641
|
ModelMaterialOverride(material?: IMaterial): void;
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
interface RenderLib {
|
|
864
642
|
/**
|
|
865
643
|
* Overrides the write behaviour of all next rendering operations towards the alpha channel of the current render target.
|
|
866
644
|
*
|
|
@@ -873,9 +651,6 @@ interface RenderLib {
|
|
|
873
651
|
* @source https://wiki.facepunch.com/gmod/render.OverrideAlphaWriteEnable
|
|
874
652
|
*/
|
|
875
653
|
OverrideAlphaWriteEnable(enable: boolean, shouldWrite?: boolean): void;
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
interface RenderLib {
|
|
879
654
|
/**
|
|
880
655
|
* Overrides the way that the final color and alpha is calculated for each pixel affected by upcoming draw operations.
|
|
881
656
|
*
|
|
@@ -890,17 +665,8 @@ interface RenderLib {
|
|
|
890
665
|
* @source https://wiki.facepunch.com/gmod/render.OverrideBlend
|
|
891
666
|
*/
|
|
892
667
|
OverrideBlend(enabled: boolean, sourceMultiplier: BLEND, destinationMultiplier: BLEND, blendingFunction: BLENDFUNC): void;
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
interface RenderLib {
|
|
896
668
|
OverrideBlend(enabled: boolean, sourceColorMultiplier: BLEND, destinationColorMultiplier: BLEND, colorBlendingFunction: BLENDFUNC, sourceAlphaMultiplier?: BLEND, destinationAlphaMultiplier?: BLEND, alphaBlendingFunction?: BLENDFUNC): void;
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
interface RenderLib {
|
|
900
669
|
OverrideBlend(enabled: boolean): void;
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
interface RenderLib {
|
|
904
670
|
/**
|
|
905
671
|
* Overrides the internal graphical functions used to determine the final color and alpha of a rendered texture.
|
|
906
672
|
*
|
|
@@ -914,27 +680,18 @@ interface RenderLib {
|
|
|
914
680
|
* @deprecated Use render.OverrideBlend instead.
|
|
915
681
|
*/
|
|
916
682
|
OverrideBlendFunc(enabled: boolean, srcBlend: number, destBlend: number, srcBlendAlpha?: number, destBlendAlpha?: number): void;
|
|
917
|
-
}
|
|
918
|
-
|
|
919
|
-
interface RenderLib {
|
|
920
683
|
/**
|
|
921
684
|
* Overrides the write behaviour of all next rendering operations towards the color channel of the current render target.
|
|
922
685
|
* @realm client and menu
|
|
923
686
|
* @source https://wiki.facepunch.com/gmod/render.OverrideColorWriteEnable
|
|
924
687
|
*/
|
|
925
688
|
OverrideColorWriteEnable(enable: boolean, shouldWrite: boolean): void;
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
interface RenderLib {
|
|
929
689
|
/**
|
|
930
690
|
* Overrides the write behaviour of all next rendering operations towards the depth buffer.
|
|
931
691
|
* @realm client and menu
|
|
932
692
|
* @source https://wiki.facepunch.com/gmod/render.OverrideDepthEnable
|
|
933
693
|
*/
|
|
934
694
|
OverrideDepthEnable(enable: boolean, shouldWrite: boolean): void;
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
interface RenderLib {
|
|
938
695
|
/**
|
|
939
696
|
* Performs a Stencil operation on every pixel in the active [Render Target](https://wiki.facepunch.com/gmod/render_rendertargets) without performing a draw operation.
|
|
940
697
|
*
|
|
@@ -944,18 +701,12 @@ interface RenderLib {
|
|
|
944
701
|
* @source https://wiki.facepunch.com/gmod/render.PerformFullScreenStencilOperation
|
|
945
702
|
*/
|
|
946
703
|
PerformFullScreenStencilOperation(): void;
|
|
947
|
-
}
|
|
948
|
-
|
|
949
|
-
interface RenderLib {
|
|
950
704
|
/**
|
|
951
705
|
* Removes the current active clipping plane from the clip plane stack.
|
|
952
706
|
* @realm client and menu
|
|
953
707
|
* @source https://wiki.facepunch.com/gmod/render.PopCustomClipPlane
|
|
954
708
|
*/
|
|
955
709
|
PopCustomClipPlane(): void;
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
interface RenderLib {
|
|
959
710
|
/**
|
|
960
711
|
* Pops (Removes) the texture filter most recently pushed (Added) onto the magnification texture filter stack.
|
|
961
712
|
*
|
|
@@ -967,9 +718,6 @@ interface RenderLib {
|
|
|
967
718
|
* @source https://wiki.facepunch.com/gmod/render.PopFilterMag
|
|
968
719
|
*/
|
|
969
720
|
PopFilterMag(): void;
|
|
970
|
-
}
|
|
971
|
-
|
|
972
|
-
interface RenderLib {
|
|
973
721
|
/**
|
|
974
722
|
* Pops (Removes) the texture filter most recently pushed (Added) onto the minification texture filter stack.
|
|
975
723
|
*
|
|
@@ -981,18 +729,12 @@ interface RenderLib {
|
|
|
981
729
|
* @source https://wiki.facepunch.com/gmod/render.PopFilterMin
|
|
982
730
|
*/
|
|
983
731
|
PopFilterMin(): void;
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
interface RenderLib {
|
|
987
732
|
/**
|
|
988
733
|
* Pops the current flashlight mode from the flashlight mode stack.
|
|
989
734
|
* @realm client
|
|
990
735
|
* @source https://wiki.facepunch.com/gmod/render.PopFlashlightMode
|
|
991
736
|
*/
|
|
992
737
|
PopFlashlightMode(): void;
|
|
993
|
-
}
|
|
994
|
-
|
|
995
|
-
interface RenderLib {
|
|
996
738
|
/**
|
|
997
739
|
* Pops the last render target and viewport from the RT stack and sets them as the current render target and viewport.
|
|
998
740
|
*
|
|
@@ -1002,9 +744,6 @@ interface RenderLib {
|
|
|
1002
744
|
* @source https://wiki.facepunch.com/gmod/render.PopRenderTarget
|
|
1003
745
|
*/
|
|
1004
746
|
PopRenderTarget(): void;
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
interface RenderLib {
|
|
1008
747
|
/**
|
|
1009
748
|
* Pushes a new clipping plane of the clip plane stack and sets it as active.
|
|
1010
749
|
*
|
|
@@ -1014,9 +753,6 @@ interface RenderLib {
|
|
|
1014
753
|
* @source https://wiki.facepunch.com/gmod/render.PushCustomClipPlane
|
|
1015
754
|
*/
|
|
1016
755
|
PushCustomClipPlane(normal: Vector, distance: number): void;
|
|
1017
|
-
}
|
|
1018
|
-
|
|
1019
|
-
interface RenderLib {
|
|
1020
756
|
/**
|
|
1021
757
|
* Pushes (Adds) a texture filter onto the magnification texture filter stack.
|
|
1022
758
|
* This will modify how textures are stretched to sizes larger than their native resolution for upcoming rendering and drawing operations.
|
|
@@ -1033,9 +769,6 @@ interface RenderLib {
|
|
|
1033
769
|
* @source https://wiki.facepunch.com/gmod/render.PushFilterMag
|
|
1034
770
|
*/
|
|
1035
771
|
PushFilterMag(texFilterType: number): void;
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
interface RenderLib {
|
|
1039
772
|
/**
|
|
1040
773
|
* Pushes (Adds) a texture filter onto the minification texture filter stack.
|
|
1041
774
|
* This will modify how textures are compressed to a lower resolution than their native resolution for upcoming rendering and drawing operations.
|
|
@@ -1050,9 +783,6 @@ interface RenderLib {
|
|
|
1050
783
|
* @source https://wiki.facepunch.com/gmod/render.PushFilterMin
|
|
1051
784
|
*/
|
|
1052
785
|
PushFilterMin(texFilterType: number): void;
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
interface RenderLib {
|
|
1056
786
|
/**
|
|
1057
787
|
* Enables the flashlight projection for the upcoming rendering.
|
|
1058
788
|
*
|
|
@@ -1063,9 +793,6 @@ interface RenderLib {
|
|
|
1063
793
|
* @deprecated This will leave models lit under specific conditions. You should use render.RenderFlashlights which is meant as a direct replacement for this function.
|
|
1064
794
|
*/
|
|
1065
795
|
PushFlashlightMode(enable?: boolean): void;
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
interface RenderLib {
|
|
1069
796
|
/**
|
|
1070
797
|
* Pushes the current render target and viewport to the RT stack then sets a new current render target and viewport. If the viewport is not specified, the dimensions of the render target are used instead.
|
|
1071
798
|
*
|
|
@@ -1082,45 +809,30 @@ interface RenderLib {
|
|
|
1082
809
|
* @source https://wiki.facepunch.com/gmod/render.PushRenderTarget
|
|
1083
810
|
*/
|
|
1084
811
|
PushRenderTarget(texture?: ITexture, x?: number, y?: number, w?: number, h?: number): void;
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
|
-
interface RenderLib {
|
|
1088
812
|
/**
|
|
1089
813
|
* Reads the color of the specified pixel from the RenderTarget sent by [render.CapturePixels](https://wiki.facepunch.com/gmod/render.CapturePixels)
|
|
1090
814
|
* @realm client
|
|
1091
815
|
* @source https://wiki.facepunch.com/gmod/render.ReadPixel
|
|
1092
816
|
*/
|
|
1093
817
|
ReadPixel(x: number, y: number): (number, number, number, number);
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
|
-
interface RenderLib {
|
|
1097
818
|
/**
|
|
1098
819
|
* This applies the changes made to map lighting using [engine.LightStyle](https://wiki.facepunch.com/gmod/engine.LightStyle).
|
|
1099
820
|
* @realm client
|
|
1100
821
|
* @source https://wiki.facepunch.com/gmod/render.RedownloadAllLightmaps
|
|
1101
822
|
*/
|
|
1102
823
|
RedownloadAllLightmaps(DoStaticProps?: boolean, UpdateStaticLighting?: boolean): void;
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
interface RenderLib {
|
|
1106
824
|
/**
|
|
1107
825
|
* Renders additive flashlights on an [IMesh](https://wiki.facepunch.com/gmod/IMesh), a direct replacement for [render.PushFlashlightMode](https://wiki.facepunch.com/gmod/render.PushFlashlightMode).
|
|
1108
826
|
* @realm client
|
|
1109
827
|
* @source https://wiki.facepunch.com/gmod/render.RenderFlashlights
|
|
1110
828
|
*/
|
|
1111
829
|
RenderFlashlights(renderFunc: function): void;
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
interface RenderLib {
|
|
1115
830
|
/**
|
|
1116
831
|
* Renders the HUD on the screen.
|
|
1117
832
|
* @realm client
|
|
1118
833
|
* @source https://wiki.facepunch.com/gmod/render.RenderHUD
|
|
1119
834
|
*/
|
|
1120
835
|
RenderHUD(x: number, y: number, w: number, h: number): void;
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
|
-
interface RenderLib {
|
|
1124
836
|
/**
|
|
1125
837
|
* Renders the scene with the specified viewData to the current active render target.
|
|
1126
838
|
*
|
|
@@ -1131,9 +843,6 @@ interface RenderLib {
|
|
|
1131
843
|
* @source https://wiki.facepunch.com/gmod/render.RenderView
|
|
1132
844
|
*/
|
|
1133
845
|
RenderView(view?: ViewData): void;
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
interface RenderLib {
|
|
1137
846
|
/**
|
|
1138
847
|
* Resets the model lighting to the specified color.
|
|
1139
848
|
*
|
|
@@ -1143,9 +852,6 @@ interface RenderLib {
|
|
|
1143
852
|
* @source https://wiki.facepunch.com/gmod/render.ResetModelLighting
|
|
1144
853
|
*/
|
|
1145
854
|
ResetModelLighting(r: number, g: number, b: number): void;
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
interface RenderLib {
|
|
1149
855
|
/**
|
|
1150
856
|
* Resets the HDR tone multiplier to the specified value.
|
|
1151
857
|
*
|
|
@@ -1155,18 +861,12 @@ interface RenderLib {
|
|
|
1155
861
|
* @source https://wiki.facepunch.com/gmod/render.ResetToneMappingScale
|
|
1156
862
|
*/
|
|
1157
863
|
ResetToneMappingScale(scale: number): void;
|
|
1158
|
-
}
|
|
1159
|
-
|
|
1160
|
-
interface RenderLib {
|
|
1161
864
|
/**
|
|
1162
865
|
* Sets the ambient lighting for any upcoming render operation.
|
|
1163
866
|
* @realm client
|
|
1164
867
|
* @source https://wiki.facepunch.com/gmod/render.SetAmbientLight
|
|
1165
868
|
*/
|
|
1166
869
|
SetAmbientLight(r: number, g: number, b: number): void;
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
|
-
interface RenderLib {
|
|
1170
870
|
/**
|
|
1171
871
|
* Sets the alpha blending (or transparency) for upcoming render operations.
|
|
1172
872
|
*
|
|
@@ -1183,9 +883,6 @@ interface RenderLib {
|
|
|
1183
883
|
* @source https://wiki.facepunch.com/gmod/render.SetBlend
|
|
1184
884
|
*/
|
|
1185
885
|
SetBlend(blending: number): void;
|
|
1186
|
-
}
|
|
1187
|
-
|
|
1188
|
-
interface RenderLib {
|
|
1189
886
|
/**
|
|
1190
887
|
* Sets the current drawing material to "color".
|
|
1191
888
|
*
|
|
@@ -1207,9 +904,6 @@ interface RenderLib {
|
|
|
1207
904
|
* @source https://wiki.facepunch.com/gmod/render.SetColorMaterial
|
|
1208
905
|
*/
|
|
1209
906
|
SetColorMaterial(): void;
|
|
1210
|
-
}
|
|
1211
|
-
|
|
1212
|
-
interface RenderLib {
|
|
1213
907
|
/**
|
|
1214
908
|
* Sets the current drawing material to `color_ignorez`.
|
|
1215
909
|
*
|
|
@@ -1231,9 +925,6 @@ interface RenderLib {
|
|
|
1231
925
|
* @source https://wiki.facepunch.com/gmod/render.SetColorMaterialIgnoreZ
|
|
1232
926
|
*/
|
|
1233
927
|
SetColorMaterialIgnoreZ(): void;
|
|
1234
|
-
}
|
|
1235
|
-
|
|
1236
|
-
interface RenderLib {
|
|
1237
928
|
/**
|
|
1238
929
|
* Sets the color modulation for upcoming render operations, such as rendering models.
|
|
1239
930
|
*
|
|
@@ -1245,18 +936,12 @@ interface RenderLib {
|
|
|
1245
936
|
* @source https://wiki.facepunch.com/gmod/render.SetColorModulation
|
|
1246
937
|
*/
|
|
1247
938
|
SetColorModulation(r: number, g: number, b: number): void;
|
|
1248
|
-
}
|
|
1249
|
-
|
|
1250
|
-
interface RenderLib {
|
|
1251
939
|
/**
|
|
1252
940
|
* If the [fog mode](https://wiki.facepunch.com/gmod/render.FogMode) is set to [MATERIAL_FOG_LINEAR_BELOW_FOG_Z](https://wiki.facepunch.com/gmod/Enums/MATERIAL_FOG), the fog will only be rendered below the specified height.
|
|
1253
941
|
* @realm client
|
|
1254
942
|
* @source https://wiki.facepunch.com/gmod/render.SetFogZ
|
|
1255
943
|
*/
|
|
1256
944
|
SetFogZ(fogZ: number): void;
|
|
1257
|
-
}
|
|
1258
|
-
|
|
1259
|
-
interface RenderLib {
|
|
1260
945
|
/**
|
|
1261
946
|
* Sets the goal HDR tone mapping scale.
|
|
1262
947
|
*
|
|
@@ -1266,9 +951,6 @@ interface RenderLib {
|
|
|
1266
951
|
* @source https://wiki.facepunch.com/gmod/render.SetGoalToneMappingScale
|
|
1267
952
|
*/
|
|
1268
953
|
SetGoalToneMappingScale(scale: number): void;
|
|
1269
|
-
}
|
|
1270
|
-
|
|
1271
|
-
interface RenderLib {
|
|
1272
954
|
/**
|
|
1273
955
|
* Sets lighting mode when rendering something.
|
|
1274
956
|
*
|
|
@@ -1279,9 +961,6 @@ interface RenderLib {
|
|
|
1279
961
|
* @source https://wiki.facepunch.com/gmod/render.SetLightingMode
|
|
1280
962
|
*/
|
|
1281
963
|
SetLightingMode(Mode: number): void;
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
|
-
interface RenderLib {
|
|
1285
964
|
/**
|
|
1286
965
|
* Sets lighting origin for the current model.
|
|
1287
966
|
*
|
|
@@ -1289,9 +968,6 @@ interface RenderLib {
|
|
|
1289
968
|
* @source https://wiki.facepunch.com/gmod/render.SetLightingOrigin
|
|
1290
969
|
*/
|
|
1291
970
|
SetLightingOrigin(lightingOrigin: Vector): void;
|
|
1292
|
-
}
|
|
1293
|
-
|
|
1294
|
-
interface RenderLib {
|
|
1295
971
|
/**
|
|
1296
972
|
* Sets the texture to be used as the lightmap in upcoming rendering operations. This is required when rendering meshes using a material with a lightmapped shader such as `LightmappedGeneric`.
|
|
1297
973
|
*
|
|
@@ -1299,9 +975,6 @@ interface RenderLib {
|
|
|
1299
975
|
* @source https://wiki.facepunch.com/gmod/render.SetLightmapTexture
|
|
1300
976
|
*/
|
|
1301
977
|
SetLightmapTexture(tex: ITexture): void;
|
|
1302
|
-
}
|
|
1303
|
-
|
|
1304
|
-
interface RenderLib {
|
|
1305
978
|
/**
|
|
1306
979
|
* Sets up the local lighting for any upcoming render operation. Up to 4 local lights can be defined, with one of three different types (point, directional, spot).
|
|
1307
980
|
*
|
|
@@ -1311,9 +984,6 @@ interface RenderLib {
|
|
|
1311
984
|
* @source https://wiki.facepunch.com/gmod/render.SetLocalModelLights
|
|
1312
985
|
*/
|
|
1313
986
|
SetLocalModelLights(lights?: LocalLight): void;
|
|
1314
|
-
}
|
|
1315
|
-
|
|
1316
|
-
interface RenderLib {
|
|
1317
987
|
/**
|
|
1318
988
|
* Sets the material to be used in any upcoming render operation using the [render](https://wiki.facepunch.com/gmod/render).
|
|
1319
989
|
*
|
|
@@ -1323,9 +993,6 @@ interface RenderLib {
|
|
|
1323
993
|
* @source https://wiki.facepunch.com/gmod/render.SetMaterial
|
|
1324
994
|
*/
|
|
1325
995
|
SetMaterial(mat: IMaterial): void;
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
|
-
interface RenderLib {
|
|
1329
996
|
/**
|
|
1330
997
|
* Sets up the ambient lighting for any upcoming render operation. Ambient lighting can be seen as a cube enclosing the object to be drawn, each of its faces representing a directional light source that shines towards the object. Thus, there is a total of six different light sources that can be configured separately.
|
|
1331
998
|
*
|
|
@@ -1335,18 +1002,12 @@ interface RenderLib {
|
|
|
1335
1002
|
* @source https://wiki.facepunch.com/gmod/render.SetModelLighting
|
|
1336
1003
|
*/
|
|
1337
1004
|
SetModelLighting(lightDirection: BOX, red: number, green: number, blue: number): void;
|
|
1338
|
-
}
|
|
1339
|
-
|
|
1340
|
-
interface RenderLib {
|
|
1341
1005
|
/**
|
|
1342
1006
|
* Sets the render target to the specified rt.
|
|
1343
1007
|
* @realm client
|
|
1344
1008
|
* @source https://wiki.facepunch.com/gmod/render.SetRenderTarget
|
|
1345
1009
|
*/
|
|
1346
1010
|
SetRenderTarget(texture: ITexture): void;
|
|
1347
|
-
}
|
|
1348
|
-
|
|
1349
|
-
interface RenderLib {
|
|
1350
1011
|
/**
|
|
1351
1012
|
* Sets the render target with the specified index of `COLOR[n]` to the specified rt, allowing you to work with [Multiple Render Targets (MRT)](https://learn.microsoft.com/en-us/windows/win32/direct3d9/multiple-render-targets). Since standard shaders don't use MRT, you might find this useful at [Shaders/screenspace_general](https://wiki.facepunch.com/gmod/Shaders/screenspace_general).
|
|
1352
1013
|
* **NOTE**: MRT doesn't work with 2D render functions like [render.DrawScreenQuad](https://wiki.facepunch.com/gmod/render.DrawScreenQuad). Instead, you can render a [render.DrawQuad](https://wiki.facepunch.com/gmod/render.DrawQuad) using [cam.Start2D](https://wiki.facepunch.com/gmod/cam.Start2D).
|
|
@@ -1364,45 +1025,30 @@ interface RenderLib {
|
|
|
1364
1025
|
* @source https://wiki.facepunch.com/gmod/render.SetRenderTargetEx
|
|
1365
1026
|
*/
|
|
1366
1027
|
SetRenderTargetEx(rtIndex: number, texture?: ITexture): void;
|
|
1367
|
-
}
|
|
1368
|
-
|
|
1369
|
-
interface RenderLib {
|
|
1370
1028
|
/**
|
|
1371
1029
|
* Sets a scissoring rectangle which limits the drawing area. (otherwise known as clipping)
|
|
1372
1030
|
* @realm client and menu
|
|
1373
1031
|
* @source https://wiki.facepunch.com/gmod/render.SetScissorRect
|
|
1374
1032
|
*/
|
|
1375
1033
|
SetScissorRect(startX: number, startY: number, endX: number, endY: number, enable: boolean): void;
|
|
1376
|
-
}
|
|
1377
|
-
|
|
1378
|
-
interface RenderLib {
|
|
1379
1034
|
/**
|
|
1380
1035
|
* Sets the shadow color.
|
|
1381
1036
|
* @realm client
|
|
1382
1037
|
* @source https://wiki.facepunch.com/gmod/render.SetShadowColor
|
|
1383
1038
|
*/
|
|
1384
1039
|
SetShadowColor(red: number, green: number, blue: number): void;
|
|
1385
|
-
}
|
|
1386
|
-
|
|
1387
|
-
interface RenderLib {
|
|
1388
1040
|
/**
|
|
1389
1041
|
* Sets the shadow projection direction.
|
|
1390
1042
|
* @realm client
|
|
1391
1043
|
* @source https://wiki.facepunch.com/gmod/render.SetShadowDirection
|
|
1392
1044
|
*/
|
|
1393
1045
|
SetShadowDirection(shadowDirections: Vector): void;
|
|
1394
|
-
}
|
|
1395
|
-
|
|
1396
|
-
interface RenderLib {
|
|
1397
1046
|
/**
|
|
1398
1047
|
* Sets the maximum shadow projection range.
|
|
1399
1048
|
* @realm client
|
|
1400
1049
|
* @source https://wiki.facepunch.com/gmod/render.SetShadowDistance
|
|
1401
1050
|
*/
|
|
1402
1051
|
SetShadowDistance(shadowDistance: number): void;
|
|
1403
|
-
}
|
|
1404
|
-
|
|
1405
|
-
interface RenderLib {
|
|
1406
1052
|
/**
|
|
1407
1053
|
* Sets whether all shadow rendering should be disabled.
|
|
1408
1054
|
*
|
|
@@ -1414,9 +1060,6 @@ interface RenderLib {
|
|
|
1414
1060
|
* @source https://wiki.facepunch.com/gmod/render.SetShadowsDisabled
|
|
1415
1061
|
*/
|
|
1416
1062
|
SetShadowsDisabled(disable: boolean): void;
|
|
1417
|
-
}
|
|
1418
|
-
|
|
1419
|
-
interface RenderLib {
|
|
1420
1063
|
/**
|
|
1421
1064
|
* Sets the Compare Function that all pixels affected by a draw operation will have their Stencil Buffer value tested against.
|
|
1422
1065
|
*
|
|
@@ -1432,9 +1075,6 @@ interface RenderLib {
|
|
|
1432
1075
|
* @source https://wiki.facepunch.com/gmod/render.SetStencilCompareFunction
|
|
1433
1076
|
*/
|
|
1434
1077
|
SetStencilCompareFunction(compareFunction: STENCILCOMPARISONFUNCTION): void;
|
|
1435
|
-
}
|
|
1436
|
-
|
|
1437
|
-
interface RenderLib {
|
|
1438
1078
|
/**
|
|
1439
1079
|
* Enables or disables the Stencil system for future draw operations.
|
|
1440
1080
|
*
|
|
@@ -1453,9 +1093,6 @@ interface RenderLib {
|
|
|
1453
1093
|
* @source https://wiki.facepunch.com/gmod/render.SetStencilEnable
|
|
1454
1094
|
*/
|
|
1455
1095
|
SetStencilEnable(newState: boolean): void;
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
|
-
interface RenderLib {
|
|
1459
1096
|
/**
|
|
1460
1097
|
* Sets the [Stencil Operation](https://wiki.facepunch.com/gmod/Enums/STENCILOPERATION) that will be performed on the Stencil Buffer values of pixels affected by draw operations if the [Compare Function](https://wiki.facepunch.com/gmod/render.SetStencilCompareFunction) did **not** [Pass](https://wiki.facepunch.com/gmod/render.SetStencilPassOperation) the pixel.
|
|
1461
1098
|
*
|
|
@@ -1465,9 +1102,6 @@ interface RenderLib {
|
|
|
1465
1102
|
* @source https://wiki.facepunch.com/gmod/render.SetStencilFailOperation
|
|
1466
1103
|
*/
|
|
1467
1104
|
SetStencilFailOperation(failOperation: STENCILOPERATION): void;
|
|
1468
|
-
}
|
|
1469
|
-
|
|
1470
|
-
interface RenderLib {
|
|
1471
1105
|
/**
|
|
1472
1106
|
* Sets the [Stencil Operation](https://wiki.facepunch.com/gmod/Enums/STENCILOPERATION) that will be performed on the Stencil Buffer values of pixels affected by draw operations if the [Compare Function](https://wiki.facepunch.com/gmod/render.SetStencilCompareFunction) Passes the pixel.
|
|
1473
1107
|
*
|
|
@@ -1477,9 +1111,6 @@ interface RenderLib {
|
|
|
1477
1111
|
* @source https://wiki.facepunch.com/gmod/render.SetStencilPassOperation
|
|
1478
1112
|
*/
|
|
1479
1113
|
SetStencilPassOperation(passOperation: STENCILOPERATION): void;
|
|
1480
|
-
}
|
|
1481
|
-
|
|
1482
|
-
interface RenderLib {
|
|
1483
1114
|
/**
|
|
1484
1115
|
* Sets the Stencil system's Reference Value which is compared against each pixel's corresponding Stencil Buffer value in the [Compare Function](https://wiki.facepunch.com/gmod/render.SetStencilCompareFunction) and can be used to modify the Stencil Buffer value of those same pixels in the [Pass](https://wiki.facepunch.com/gmod/render.SetStencilPassOperation), [Fail](https://wiki.facepunch.com/gmod/render.SetStencilFailOperation), and [Z Fail](https://wiki.facepunch.com/gmod/render.SetStencilZFailOperation) operations.
|
|
1485
1116
|
*
|
|
@@ -1489,9 +1120,6 @@ interface RenderLib {
|
|
|
1489
1120
|
* @source https://wiki.facepunch.com/gmod/render.SetStencilReferenceValue
|
|
1490
1121
|
*/
|
|
1491
1122
|
SetStencilReferenceValue(referenceValue: number): void;
|
|
1492
|
-
}
|
|
1493
|
-
|
|
1494
|
-
interface RenderLib {
|
|
1495
1123
|
/**
|
|
1496
1124
|
* Sets the unsigned 8-bit (`byte`) bitflag mask that will be bitwise ANDed with all values as they are read (tested) from the Stencil Buffer
|
|
1497
1125
|
*
|
|
@@ -1505,9 +1133,6 @@ interface RenderLib {
|
|
|
1505
1133
|
* @source https://wiki.facepunch.com/gmod/render.SetStencilTestMask
|
|
1506
1134
|
*/
|
|
1507
1135
|
SetStencilTestMask(bitMask: number): void;
|
|
1508
|
-
}
|
|
1509
|
-
|
|
1510
|
-
interface RenderLib {
|
|
1511
1136
|
/**
|
|
1512
1137
|
* Sets the unsigned 8-bit (`byte`) bitflag mask that will be bitwise ANDed with all values as they are written to the Stencil Buffer
|
|
1513
1138
|
*
|
|
@@ -1521,9 +1146,6 @@ interface RenderLib {
|
|
|
1521
1146
|
* @source https://wiki.facepunch.com/gmod/render.SetStencilWriteMask
|
|
1522
1147
|
*/
|
|
1523
1148
|
SetStencilWriteMask(bitMask: number): void;
|
|
1524
|
-
}
|
|
1525
|
-
|
|
1526
|
-
interface RenderLib {
|
|
1527
1149
|
/**
|
|
1528
1150
|
* Sets the [Stencil Operation](https://wiki.facepunch.com/gmod/Enums/STENCILOPERATION) that will be performed on the Stencil Buffer values of pixels affected by draw operations if the [Compare Function](https://wiki.facepunch.com/gmod/render.SetStencilCompareFunction) Passed a given pixel, but it did **not** Pass the Depth Test.
|
|
1529
1151
|
*
|
|
@@ -1533,18 +1155,12 @@ interface RenderLib {
|
|
|
1533
1155
|
* @source https://wiki.facepunch.com/gmod/render.SetStencilZFailOperation
|
|
1534
1156
|
*/
|
|
1535
1157
|
SetStencilZFailOperation(zFailOperation: STENCILOPERATION): void;
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
|
-
interface RenderLib {
|
|
1539
1158
|
/**
|
|
1540
1159
|
* Sets the tone mapping scale for upcoming rendering operations.
|
|
1541
1160
|
* @realm client
|
|
1542
1161
|
* @source https://wiki.facepunch.com/gmod/render.SetToneMappingScaleLinear
|
|
1543
1162
|
*/
|
|
1544
1163
|
SetToneMappingScaleLinear(scales: Vector): void;
|
|
1545
|
-
}
|
|
1546
|
-
|
|
1547
|
-
interface RenderLib {
|
|
1548
1164
|
/**
|
|
1549
1165
|
* Changes the view port position and size. The values will be clamped to the game's screen resolution.
|
|
1550
1166
|
*
|
|
@@ -1557,18 +1173,12 @@ interface RenderLib {
|
|
|
1557
1173
|
* @source https://wiki.facepunch.com/gmod/render.SetViewPort
|
|
1558
1174
|
*/
|
|
1559
1175
|
SetViewPort(x: number, y: number, w: number, h: number): void;
|
|
1560
|
-
}
|
|
1561
|
-
|
|
1562
|
-
interface RenderLib {
|
|
1563
1176
|
/**
|
|
1564
1177
|
* Sets the internal parameter **INT_RENDERPARM_WRITE_DEPTH_TO_DESTALPHA**.
|
|
1565
1178
|
* @realm client
|
|
1566
1179
|
* @source https://wiki.facepunch.com/gmod/render.SetWriteDepthToDestAlpha
|
|
1567
1180
|
*/
|
|
1568
1181
|
SetWriteDepthToDestAlpha(enable: boolean): void;
|
|
1569
|
-
}
|
|
1570
|
-
|
|
1571
|
-
interface RenderLib {
|
|
1572
1182
|
/**
|
|
1573
1183
|
* Swaps the frame buffers/cycles the frame. In other words, this updates the screen.
|
|
1574
1184
|
*
|
|
@@ -1578,9 +1188,6 @@ interface RenderLib {
|
|
|
1578
1188
|
* @source https://wiki.facepunch.com/gmod/render.Spin
|
|
1579
1189
|
*/
|
|
1580
1190
|
Spin(): void;
|
|
1581
|
-
}
|
|
1582
|
-
|
|
1583
|
-
interface RenderLib {
|
|
1584
1191
|
/**
|
|
1585
1192
|
* Begin drawing a multi-segment Beam.
|
|
1586
1193
|
*
|
|
@@ -1591,45 +1198,30 @@ interface RenderLib {
|
|
|
1591
1198
|
* @source https://wiki.facepunch.com/gmod/render.StartBeam
|
|
1592
1199
|
*/
|
|
1593
1200
|
StartBeam(segmentCount: number): void;
|
|
1594
|
-
}
|
|
1595
|
-
|
|
1596
|
-
interface RenderLib {
|
|
1597
1201
|
/**
|
|
1598
1202
|
* Returns whether the player's hardware supports HDR. (High Dynamic Range) HDR can still be disabled by the `mat_hdr_level` console variable or just not be supported by the map.
|
|
1599
1203
|
* @realm client and menu
|
|
1600
1204
|
* @source https://wiki.facepunch.com/gmod/render.SupportsHDR
|
|
1601
1205
|
*/
|
|
1602
1206
|
SupportsHDR(): boolean;
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1605
|
-
interface RenderLib {
|
|
1606
1207
|
/**
|
|
1607
1208
|
* Returns if the current settings and the system allow the usage of pixel shaders 1.4.
|
|
1608
1209
|
* @realm client and menu
|
|
1609
1210
|
* @source https://wiki.facepunch.com/gmod/render.SupportsPixelShaders_1_4
|
|
1610
1211
|
*/
|
|
1611
1212
|
SupportsPixelShaders_1_4(): boolean;
|
|
1612
|
-
}
|
|
1613
|
-
|
|
1614
|
-
interface RenderLib {
|
|
1615
1213
|
/**
|
|
1616
1214
|
* Returns if the current settings and the system allow the usage of pixel shaders 2.0.
|
|
1617
1215
|
* @realm client and menu
|
|
1618
1216
|
* @source https://wiki.facepunch.com/gmod/render.SupportsPixelShaders_2_0
|
|
1619
1217
|
*/
|
|
1620
1218
|
SupportsPixelShaders_2_0(): boolean;
|
|
1621
|
-
}
|
|
1622
|
-
|
|
1623
|
-
interface RenderLib {
|
|
1624
1219
|
/**
|
|
1625
1220
|
* Returns if the current settings and the system allow the usage of vertex shaders 2.0.
|
|
1626
1221
|
* @realm client and menu
|
|
1627
1222
|
* @source https://wiki.facepunch.com/gmod/render.SupportsVertexShaders_2_0
|
|
1628
1223
|
*/
|
|
1629
1224
|
SupportsVertexShaders_2_0(): boolean;
|
|
1630
|
-
}
|
|
1631
|
-
|
|
1632
|
-
interface RenderLib {
|
|
1633
1225
|
/**
|
|
1634
1226
|
* Suppresses or enables any engine lighting for any upcoming render operation.
|
|
1635
1227
|
*
|
|
@@ -1639,18 +1231,12 @@ interface RenderLib {
|
|
|
1639
1231
|
* @source https://wiki.facepunch.com/gmod/render.SuppressEngineLighting
|
|
1640
1232
|
*/
|
|
1641
1233
|
SuppressEngineLighting(suppressLighting: boolean): void;
|
|
1642
|
-
}
|
|
1643
|
-
|
|
1644
|
-
interface RenderLib {
|
|
1645
1234
|
/**
|
|
1646
1235
|
* Enables HDR tone mapping which influences the brightness.
|
|
1647
1236
|
* @realm client
|
|
1648
1237
|
* @source https://wiki.facepunch.com/gmod/render.TurnOnToneMapping
|
|
1649
1238
|
*/
|
|
1650
1239
|
TurnOnToneMapping(): void;
|
|
1651
|
-
}
|
|
1652
|
-
|
|
1653
|
-
interface RenderLib {
|
|
1654
1240
|
/**
|
|
1655
1241
|
* Updates the texture returned by [render.GetFullScreenDepthTexture](https://wiki.facepunch.com/gmod/render.GetFullScreenDepthTexture).
|
|
1656
1242
|
*
|
|
@@ -1660,36 +1246,24 @@ interface RenderLib {
|
|
|
1660
1246
|
* @source https://wiki.facepunch.com/gmod/render.UpdateFullScreenDepthTexture
|
|
1661
1247
|
*/
|
|
1662
1248
|
UpdateFullScreenDepthTexture(): void;
|
|
1663
|
-
}
|
|
1664
|
-
|
|
1665
|
-
interface RenderLib {
|
|
1666
1249
|
/**
|
|
1667
1250
|
* Updates the power of two texture.
|
|
1668
1251
|
* @realm client
|
|
1669
1252
|
* @source https://wiki.facepunch.com/gmod/render.UpdatePowerOfTwoTexture
|
|
1670
1253
|
*/
|
|
1671
1254
|
UpdatePowerOfTwoTexture(): ITexture;
|
|
1672
|
-
}
|
|
1673
|
-
|
|
1674
|
-
interface RenderLib {
|
|
1675
1255
|
/**
|
|
1676
1256
|
* Pretty much alias of [render.UpdatePowerOfTwoTexture](https://wiki.facepunch.com/gmod/render.UpdatePowerOfTwoTexture) but does not return the texture.
|
|
1677
1257
|
* @realm client
|
|
1678
1258
|
* @source https://wiki.facepunch.com/gmod/render.UpdateRefractTexture
|
|
1679
1259
|
*/
|
|
1680
1260
|
UpdateRefractTexture(): void;
|
|
1681
|
-
}
|
|
1682
|
-
|
|
1683
|
-
interface RenderLib {
|
|
1684
1261
|
/**
|
|
1685
1262
|
* Copies the entire screen to the screen effect texture, which can be acquired via [render.GetScreenEffectTexture](https://wiki.facepunch.com/gmod/render.GetScreenEffectTexture). This function is mainly intended to be used in [GM:RenderScreenspaceEffects](https://wiki.facepunch.com/gmod/GM:RenderScreenspaceEffects).
|
|
1686
1263
|
* @realm client
|
|
1687
1264
|
* @source https://wiki.facepunch.com/gmod/render.UpdateScreenEffectTexture
|
|
1688
1265
|
*/
|
|
1689
1266
|
UpdateScreenEffectTexture(textureIndex?: number): void;
|
|
1690
|
-
}
|
|
1691
|
-
|
|
1692
|
-
interface RenderLib {
|
|
1693
1267
|
/**
|
|
1694
1268
|
* This function overrides all map materials for one frame.
|
|
1695
1269
|
* @realm client
|
|
@@ -1698,3 +1272,145 @@ interface RenderLib {
|
|
|
1698
1272
|
WorldMaterialOverride(mat?: IMaterial): void;
|
|
1699
1273
|
}
|
|
1700
1274
|
|
|
1275
|
+
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
|
|
1279
|
+
|
|
1280
|
+
|
|
1281
|
+
|
|
1282
|
+
|
|
1283
|
+
|
|
1284
|
+
|
|
1285
|
+
|
|
1286
|
+
|
|
1287
|
+
|
|
1288
|
+
|
|
1289
|
+
|
|
1290
|
+
|
|
1291
|
+
|
|
1292
|
+
|
|
1293
|
+
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
|
|
1300
|
+
|
|
1301
|
+
|
|
1302
|
+
|
|
1303
|
+
|
|
1304
|
+
|
|
1305
|
+
|
|
1306
|
+
|
|
1307
|
+
|
|
1308
|
+
|
|
1309
|
+
|
|
1310
|
+
|
|
1311
|
+
|
|
1312
|
+
|
|
1313
|
+
|
|
1314
|
+
|
|
1315
|
+
|
|
1316
|
+
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
|
|
1322
|
+
|
|
1323
|
+
|
|
1324
|
+
|
|
1325
|
+
|
|
1326
|
+
|
|
1327
|
+
|
|
1328
|
+
|
|
1329
|
+
|
|
1330
|
+
|
|
1331
|
+
|
|
1332
|
+
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
|
|
1336
|
+
|
|
1337
|
+
|
|
1338
|
+
|
|
1339
|
+
|
|
1340
|
+
|
|
1341
|
+
|
|
1342
|
+
|
|
1343
|
+
|
|
1344
|
+
|
|
1345
|
+
|
|
1346
|
+
|
|
1347
|
+
|
|
1348
|
+
|
|
1349
|
+
|
|
1350
|
+
|
|
1351
|
+
|
|
1352
|
+
|
|
1353
|
+
|
|
1354
|
+
|
|
1355
|
+
|
|
1356
|
+
|
|
1357
|
+
|
|
1358
|
+
|
|
1359
|
+
|
|
1360
|
+
|
|
1361
|
+
|
|
1362
|
+
|
|
1363
|
+
|
|
1364
|
+
|
|
1365
|
+
|
|
1366
|
+
|
|
1367
|
+
|
|
1368
|
+
|
|
1369
|
+
|
|
1370
|
+
|
|
1371
|
+
|
|
1372
|
+
|
|
1373
|
+
|
|
1374
|
+
|
|
1375
|
+
|
|
1376
|
+
|
|
1377
|
+
|
|
1378
|
+
|
|
1379
|
+
|
|
1380
|
+
|
|
1381
|
+
|
|
1382
|
+
|
|
1383
|
+
|
|
1384
|
+
|
|
1385
|
+
|
|
1386
|
+
|
|
1387
|
+
|
|
1388
|
+
|
|
1389
|
+
|
|
1390
|
+
|
|
1391
|
+
|
|
1392
|
+
|
|
1393
|
+
|
|
1394
|
+
|
|
1395
|
+
|
|
1396
|
+
|
|
1397
|
+
|
|
1398
|
+
|
|
1399
|
+
|
|
1400
|
+
|
|
1401
|
+
|
|
1402
|
+
|
|
1403
|
+
|
|
1404
|
+
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
|
|
1408
|
+
|
|
1409
|
+
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
|
|
1414
|
+
|
|
1415
|
+
|
|
1416
|
+
|