MCPcopy Create free account
hub / github.com/LukasBanana/LLGL / UpdateSettingsForTexture

Function UpdateSettingsForTexture

examples/Cpp/RenderTarget/Example.cpp:385–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383 static const auto shaderStages = LLGL::StageFlags::VertexStage | LLGL::StageFlags::FragmentStage;
384
385 void UpdateSettingsForTexture(Settings& settings)
386 {
387 // Update model transformation with render-target projection
388 UpdateModelTransform(settings, renderTargetProj, rotation.y, Gs::Vector3f(1));
389
390 #if ENABLE_CUSTOM_MULTISAMPLING
391
392 // Disable multi-sample texture in fragment shader
393 settings.useTexture2DMS = 0;
394
395 #endif // /ENABLE_CUSTOM_MULTISAMPLING
396 }
397
398 void UpdateSettingsForScreen(Settings& settings)
399 {

Callers 2

DrawSceneIntoTextureFunction · 0.85
OnDrawFrameFunction · 0.85

Calls 1

UpdateModelTransformFunction · 0.85

Tested by

no test coverage detected