Texture refactor
-Texture renamed to Texture2D -TextureLayered as base now inherits 2Darray, cubemap and cubemap array -Removed all references to flags in textures (they will go in the shader) -Texture3D gone for now (will come back later done properly) -Create base rasterizer for RenderDevice, RasterizerRD
This commit is contained in:
parent
9ffe57a10e
commit
3f335ce3d4
287 changed files with 2829 additions and 2540 deletions
|
|
@ -76,7 +76,7 @@ void EditorLog::_notification(int p_what) {
|
|||
void EditorLog::_clear_request() {
|
||||
|
||||
log->clear();
|
||||
tool_button->set_icon(Ref<Texture>());
|
||||
tool_button->set_icon(Ref<Texture2D>());
|
||||
}
|
||||
|
||||
void EditorLog::_copy_request() {
|
||||
|
|
@ -102,14 +102,14 @@ void EditorLog::add_message(const String &p_msg, MessageType p_type) {
|
|||
} break;
|
||||
case MSG_TYPE_ERROR: {
|
||||
log->push_color(get_color("error_color", "Editor"));
|
||||
Ref<Texture> icon = get_icon("Error", "EditorIcons");
|
||||
Ref<Texture2D> icon = get_icon("Error", "EditorIcons");
|
||||
log->add_image(icon);
|
||||
log->add_text(" ");
|
||||
tool_button->set_icon(icon);
|
||||
} break;
|
||||
case MSG_TYPE_WARNING: {
|
||||
log->push_color(get_color("warning_color", "Editor"));
|
||||
Ref<Texture> icon = get_icon("Warning", "EditorIcons");
|
||||
Ref<Texture2D> icon = get_icon("Warning", "EditorIcons");
|
||||
log->add_image(icon);
|
||||
log->add_text(" ");
|
||||
tool_button->set_icon(icon);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue