s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejamslive now

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

The jam is running. Build something, or play the entries.

£50,000
prizepool
View the jam
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
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.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter