LeviLamina
Loading...
Searching...
No Matches
RenderContext.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/renderer/hal/deprecated/ResourceBase.h"
7#include "mc/deps/renderer/hal/null/RenderContextNull.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace mce { class Color; }
12namespace mce { class RenderDevice; }
13namespace mce { struct ViewportInfo; }
14// clang-format on
15
16namespace mce {
17
18class RenderContext : public ::mce::RenderContextNull,
19 public ::mce::deprecated::ResourceBase<::mce::RenderContextNull> {
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<1, 1, bool> mWithinFrame;
24 // NOLINTEND
25
26public:
27 // member functions
28 // NOLINTBEGIN
29 MCAPI void beginFrame();
30
31 MCAPI bool captureScreenAsRGB(::std::vector<uchar>& outBytes, int& outWidth, int& outHeight);
32
33 MCFOLD void clearColorBuffer(::mce::Color const& clearColor, ::mce::ViewportInfo const* vpInfo);
34
35 MCFOLD void clearContextState();
36
37 MCFOLD void clearDepthStencilBuffer(float depth, uchar stencil, ::mce::ViewportInfo const* vpInfo);
38
39 MCAPI void endFrame();
40
41 MCFOLD void flush();
42
43 MCAPI ::mce::RenderDevice* getDevice() const;
44
45 MCFOLD bool isWithinFrame();
46
47 MCAPI void setScissorRect(int x, int y, uint w, uint h);
48
49 MCAPI void setViewportWithFullScissor(::mce::ViewportInfo const& viewportInfo);
50
51 MCFOLD void unbindAllTexturesAndShaders();
52 // NOLINTEND
53};
54
55} // namespace mce
Definition Color.h:13
MCAPI void clearContextState()
MCAPI::mce::RenderDevice * getDevice() const
MCAPI void unbindAllTexturesAndShaders()
MCAPI void beginFrame()
Definition RenderContext.h:7
Definition RenderDevice.h:7
Definition ViewportInfo.h:7