mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-06-18 00:27:02 +08:00
feat: add anisotropic filtering control
This commit is contained in:
@@ -8,13 +8,18 @@ class App;
|
||||
class Player;
|
||||
class DevPanel {
|
||||
struct ConfigView {
|
||||
float fov;
|
||||
bool fullscreen;
|
||||
bool v_sync;
|
||||
float mouse_sensitivity;
|
||||
int width;
|
||||
int height;
|
||||
int rendering_distance;
|
||||
float fov = 70.0f;
|
||||
bool fullscreen = false;
|
||||
bool v_sync = true;
|
||||
float mouse_sensitivity = 0.15f;
|
||||
int width = 800;
|
||||
int height = 600;
|
||||
int rendering_distance = 24;
|
||||
int aniso = 1;
|
||||
int max_aniso = 1;
|
||||
bool is_enable_aniso = false;
|
||||
bool is_support_aniso = true;
|
||||
bool is_reload = true;
|
||||
};
|
||||
struct PlayerProfile {
|
||||
int game_mode = 0;
|
||||
@@ -42,8 +47,9 @@ private:
|
||||
void show_world_tab_item();
|
||||
void show_player_tab_item();
|
||||
|
||||
void update_config_view();
|
||||
void update_player_profile();
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@ private:
|
||||
GLuint m_block_status_array;
|
||||
GLuint m_texture_array;
|
||||
GLuint m_ui_array;
|
||||
GLfloat m_max_aniso = 0.0f;
|
||||
int m_aniso = 1;
|
||||
void load_block_status(unsigned status_id);
|
||||
void load_block_texture(unsigned block_id);
|
||||
void load_ui_texture(unsigned id);
|
||||
@@ -29,7 +31,7 @@ public:
|
||||
void hot_reload();
|
||||
void need_reload();
|
||||
void update();
|
||||
|
||||
int max_aniso() const;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user