mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-03-20 06:53:30 +00:00
35 lines
1.1 KiB
C++
Executable File
35 lines
1.1 KiB
C++
Executable File
#ifndef NET_MINECRAFT_CLIENT_GUI__GuiComponent_H__
|
|
#define NET_MINECRAFT_CLIENT_GUI__GuiComponent_H__
|
|
|
|
//package net.minecraft.client.gui;
|
|
|
|
#include <string>
|
|
class Font;
|
|
class Minecraft;
|
|
|
|
class GuiComponent
|
|
{
|
|
public:
|
|
GuiComponent();
|
|
virtual ~GuiComponent();
|
|
|
|
void drawString(Font* font, const std::string& str, int x, int y, int color);
|
|
void drawCenteredString(Font* font, const std::string& str, int x, int y, int color);
|
|
|
|
void blit(int x, int y, int sx, int sy, int w, int h, int sw=0, int sh=0);
|
|
void blit(float x, float y, int sx, int sy, float w, float h, int sw=0, int sh=0);
|
|
|
|
protected:
|
|
void fill(int x0, int y0, int x1, int y1, int col);
|
|
void fill(float x0, float y0, float x1, float y1, int col);
|
|
void fillGradient(int x0, int y0, int x1, int y1, int col1, int col2);
|
|
void fillGradient(float x0, float y0, float x1, float y1, int col1, int col2);
|
|
void fillHorizontalGradient(int x0, int y0, int x1, int y1, int col1, int col2);
|
|
void fillHorizontalGradient(float x0, float y0, float x1, float y1, int col1, int col2);
|
|
|
|
float blitOffset;
|
|
|
|
};
|
|
|
|
#endif /*NET_MINECRAFT_CLIENT_GUI__GuiComponent_H__*/
|