s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Graphics
RenderTarget
chevron_left Graphics
class
RenderTarget

Properties

data_objectColorTargetdata_objectDepthTargetdata_objectHeightdata_objectWidth

Methods

functionsDispose

Static Methods

functionsFromfunctionsGetTemporary
RenderTarget
Essentially wraps a couple of textures that we're going to render to. The color texture and the depth texture.
class Sandbox .
sealedSandbox.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.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter