s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Graphics
RenderTarget
chevron_left
Graphics
class
RenderTarget
search
Properties
data_object
ColorTarget
data_object
DepthTarget
data_object
Height
data_object
Width
Methods
functions
Dispose
Static Methods
functions
From
functions
GetTemporary
RenderTarget
Essentially wraps a couple of textures that we're going to render to. The color texture and the depth texture.
class
Sandbox
.
sealed
Sandbox.Engine
data_object
Properties
4
ColorTarget
Texture
The target colour texture
DepthTarget
Texture
The target depth texture
Height
int
Height of the render target
Width
int
Width of the render target
functions
Methods
1
Dispose
(
)
Stop using this texture, return it to the pool
functions
Static Methods
2
From
(
color
,
depth
)
RenderTarget
Create a render target from these textures
GetTemporary
(
width
,
height
,
colorFormat
,
depthFormat
,
msaa
,
numMips
,
targetName
)
RenderTarget
Get a temporary render target. You should dispose the returned handle when you're done to return the textures to the pool.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.