LeviLamina
Loading...
Searching...
No Matches
MinecraftInputRenderContext Class Reference
Inheritance diagram for MinecraftInputRenderContext:

Classes

struct  TextItem

Public Types

enum class  ScreenMaterial : int {
  Blit = 0 , Fill = 1 , FillGradient = 2 , ColorBlit = 3 ,
  ColorBlitBlur = 4 , BlitCurrentShaderColor = 5 , StencilFill = 6 , ScreenMatCount = 7
}
enum class  ScreenMaterial : int {
  Blit = 0 , Fill = 1 , FillGradient = 2 , ColorBlit = 3 ,
  ColorBlitBlur = 4 , BlitCurrentShaderColor = 5 , StencilFill = 6 , ScreenMatCount = 7
}

Public Member Functions

MinecraftInputRenderContextoperator= (MinecraftInputRenderContext const &)
 MinecraftInputRenderContext (MinecraftInputRenderContext const &)
virtual void setColor (::mce::Color const &color)
virtual void drawRect (::RectangleArea const &rect, int u, int v, int uvWidth, int uvHeight, float uScale, float vScale, float px, float py) const
virtual::RectangleArea measureText (::glm::vec2 const &center, ::std::string const &text) const
virtual void drawText (::RectangleArea const &area, ::std::string const &text)
virtual void forceRender (::std::string const &texturePath)
MCAPI MinecraftInputRenderContext (::ScreenContext &screenContext, ::std::shared_ptr<::mce::TextureGroup > textureGroup, ::FontHandle fontHandle)
MCAPI void render (::mce::TexturePtr overrideTexture)
MCAPI void * $ctor (::ScreenContext &screenContext, ::std::shared_ptr<::mce::TextureGroup > textureGroup, ::FontHandle fontHandle)
MCAPI void $dtor ()
MCAPI void $setColor (::mce::Color const &color)
MCAPI void $drawRect (::RectangleArea const &rect, int u, int v, int uvWidth, int uvHeight, float uScale, float vScale, float px, float py) const
MCAPI::RectangleArea $measureText (::glm::vec2 const &center, ::std::string const &text) const
MCAPI void $drawText (::RectangleArea const &area, ::std::string const &text)
MCAPI void $forceRender (::std::string const &texturePath)
MCAPI void blit (::ScreenContext &screenContext, ::mce::TexturePtr const &tex, ::IntRectangle const &rect, ::mce::MaterialPtr const *optionalMat)
MCAPI void blit (::ScreenContext &screenContext, ::std::variant<::std::monostate, ::mce::TexturePtr, ::mce::ClientTexture, ::mce::ServerTexture > const &texture, ::IntRectangle const &rect, ::mce::MaterialPtr const *optionalMat)
MCAPI void blit (::ScreenContext &screenContext, ::std::variant<::std::monostate, ::mce::TexturePtr, ::mce::ClientTexture, ::mce::ServerTexture > const &texture, int x, int y, int sx, int sy, int w, int h, int sw, int sh, ::mce::MaterialPtr const *optionalMat, float us, float vs)
MCAPI void blit (::ScreenContext &screenContext, ::mce::TexturePtr const &texture, int x, int y, int sx, int sy, int w, int h, int sw, int sh, ::mce::MaterialPtr const *optionalMat, float us, float vs)
MCAPI void blitQuadBuffer (::ScreenRenderer::QuadBuffer const &quadBuffer, float quadW, float quadH, ::ScreenContext &screenContext, ::mce::TexturePtr const &texture, ::mce::MaterialPtr const *optionalMat)
MCAPI void drawRect (::ScreenContext &screenContext, int x0, int y0, int x1, int y1, ::mce::Color const &color, int thickness)
MCAPI void fill (::ScreenContext &screenContext, float x0, float y0, float x1, float y1, ::mce::Color const &color) const
MCAPI void fillGradient (::ScreenContext &screenContext, float x0, float y0, float x1, float y1, ::mce::Color const &color1, ::mce::Color const &color2)
MCAPI void fillHorizontalGradient (::ScreenContext &screenContext, float x0, float y0, float x1, float y1, ::mce::Color const &color1, ::mce::Color const &color2)
MCAPI void fillStencil (::ScreenContext &screenContext, float x0, float y0, float x1, float y1) const
MCAPI::mce::MaterialPtr const & getMaterial (::ScreenRenderer::ScreenMaterial mat) const
MCAPI bool tessellateQuadBuffer (::ScreenRenderer::QuadBuffer const &quadBuffer, float quadW, float quadH, ::Tessellator &tessellator, ::mce::TexturePtr const &texture)

Static Public Member Functions

static MCAPI void ** $vftable ()
static MCAPI void loadMaterials ()
static MCAPI ::ScreenRenderersingleton ()
static MCAPI ::std::add_lvalue_reference_t<::mce::MaterialPtr[]> mScreenMaterials ()
static MCAPI ::std::unique_ptr<::ScreenRenderer > & singletonPtr ()

Public Attributes

::ll::TypedStorage< 4, 16, ::mce::ColormCurrentColor
::ll::TypedStorage< 8, 80, ::FontHandlemFontHandle
::ll::TypedStorage< 8, 24, ::std::vector<::MinecraftInputRenderContext::TextItem > > mTextToDraw
::ll::TypedStorage< 8, 8, ::ScreenContext & > mScreenContext
::ll::TypedStorage< 8, 8, ::Tessellator & > mTessellator
::ll::TypedStorage< 8, 32, ::mce::TexturePtrmTexture
::ll::TypedStorage< 8, 16, ::std::shared_ptr<::mce::TextureGroup > > mTextureGroup

Member Function Documentation

◆ setColor()

virtual void MinecraftInputRenderContext::setColor ( ::mce::Color const & color)
virtual

Implements InputRenderContext.

◆ drawRect()

virtual void MinecraftInputRenderContext::drawRect ( ::RectangleArea const & rect,
int u,
int v,
int uvWidth,
int uvHeight,
float uScale,
float vScale,
float px,
float py ) const
virtual

Implements InputRenderContext.

◆ measureText()

virtual::RectangleArea MinecraftInputRenderContext::measureText ( ::glm::vec2 const & center,
::std::string const & text ) const
virtual

Implements InputRenderContext.

◆ drawText()

virtual void MinecraftInputRenderContext::drawText ( ::RectangleArea const & area,
::std::string const & text )
virtual

Implements InputRenderContext.

◆ forceRender()

virtual void MinecraftInputRenderContext::forceRender ( ::std::string const & texturePath)
virtual

Implements InputRenderContext.

◆ $vftable()

MCAPI void ** MinecraftInputRenderContext::$vftable ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following files: