mirror of
https://github.com/godotengine/godot.git
synced 2025-10-28 20:24:41 +00:00
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
|
|
@ -1647,7 +1647,7 @@ struct _ScriptEditorItemData {
|
|||
|
||||
String name;
|
||||
String sort_key;
|
||||
Ref<Texture> icon;
|
||||
Ref<Texture2D> icon;
|
||||
int index;
|
||||
String tooltip;
|
||||
bool used;
|
||||
|
|
@ -1832,7 +1832,7 @@ void ScriptEditor::_update_script_names() {
|
|||
ScriptEditorBase *se = Object::cast_to<ScriptEditorBase>(tab_container->get_child(i));
|
||||
if (se) {
|
||||
|
||||
Ref<Texture> icon = se->get_icon();
|
||||
Ref<Texture2D> icon = se->get_icon();
|
||||
String path = se->get_edited_resource()->get_path();
|
||||
bool built_in = !path.is_resource_file();
|
||||
String name;
|
||||
|
|
@ -1893,7 +1893,7 @@ void ScriptEditor::_update_script_names() {
|
|||
if (eh) {
|
||||
|
||||
String name = eh->get_class();
|
||||
Ref<Texture> icon = get_icon("Help", "EditorIcons");
|
||||
Ref<Texture2D> icon = get_icon("Help", "EditorIcons");
|
||||
String tooltip = vformat(TTR("%s Class Reference"), name);
|
||||
|
||||
_ScriptEditorItemData sd;
|
||||
|
|
@ -2416,7 +2416,7 @@ Variant ScriptEditor::get_drag_data_fw(const Point2 &p_point, Control *p_from) {
|
|||
|
||||
HBoxContainer *drag_preview = memnew(HBoxContainer);
|
||||
String preview_name = "";
|
||||
Ref<Texture> preview_icon;
|
||||
Ref<Texture2D> preview_icon;
|
||||
|
||||
ScriptEditorBase *se = Object::cast_to<ScriptEditorBase>(cur_node);
|
||||
if (se) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue