Nebula
Loading...
Searching...
No Matches
drawfullscreenquad.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
13//------------------------------------------------------------------------------
14#include "coregraphics/shader.h"
15#include "coregraphics/buffer.h"
18
19namespace RenderUtil
20{
22{
23public:
24
26 static void Setup();
28 static void Discard();
30 static bool IsValid();
31
33 static void ApplyMesh(const CoreGraphics::CmdBufferId id);
36
37private:
41 static bool isValid;
42};
43
44//------------------------------------------------------------------------------
47inline bool
52
53} // namespace RnederUtil
54//------------------------------------------------------------------------------
Defines a group of primitives as a subset of a vertex buffer and index buffer plus the primitive topo...
Definition primitivegroup.h:20
Actually draws one big triangle which covers the entire screen, which is more efficient than drawing ...
Definition drawfullscreenquad.h:22
static void Setup()
setup the object
Definition drawfullscreenquad.cc:24
static bool IsValid()
return true if object is valid
Definition drawfullscreenquad.h:48
static CoreGraphics::PrimitiveGroup primGroup
Definition drawfullscreenquad.h:40
static CoreGraphics::BufferId vertexBuffer
Definition drawfullscreenquad.h:38
static bool isValid
Definition drawfullscreenquad.h:41
static void Discard()
discard the object
Definition drawfullscreenquad.cc:87
static void ApplyMesh(const CoreGraphics::CmdBufferId id)
Apply mesh.
Definition drawfullscreenquad.cc:99
static const CoreGraphics::PrimitiveGroup & GetPrimitiveGroup()
Get primitive group.
Definition drawfullscreenquad.cc:110
static CoreGraphics::VertexLayoutId vertexLayout
Definition drawfullscreenquad.h:39
Helpers to create geometry.
Definition drawfullscreenquad.cc:10
A shader represents an entire shader resource, containing several stages and programs.
Definition buffer.h:23
Definition commandbuffer.h:155
Definition vertexlayout.h:16