Demo entry 6761610



Submitted by anonymous on Sep 28, 2018 at 16:20
Language: C++. Code size: 443 Bytes.

// Create texture
Texture colorTexture;
colorTexture->Create(Texture::eTexture2D_Multisample, windowSize, Texture::eRGB, Texture::eUByte, 4);
// Create frame buffer
FrameBuffer frameBuffer;
// Attach color buffer (render to texture)
// Attach depth-stencil buffer (render to render target)
frameBuffer.AttachDepthStencilBuffer(windowSize, 4);
// Render scene

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).