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