mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-18 06:26:16 +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:
@@ -74,7 +74,7 @@ void SplitContainer::_resort() {
|
||||
bool second_expanded = (vertical ? second->get_v_size_flags() : second->get_h_size_flags()) & SIZE_EXPAND;
|
||||
|
||||
// Determine the separation between items
|
||||
Ref<Texture> g = get_icon("grabber");
|
||||
Ref<Texture2D> g = get_icon("grabber");
|
||||
int sep = get_constant("separation");
|
||||
sep = (dragger_visibility != DRAGGER_HIDDEN_COLLAPSED) ? MAX(sep, vertical ? g->get_height() : g->get_width()) : 0;
|
||||
|
||||
@@ -123,7 +123,7 @@ Size2 SplitContainer::get_minimum_size() const {
|
||||
/* Calculate MINIMUM SIZE */
|
||||
|
||||
Size2i minimum;
|
||||
Ref<Texture> g = get_icon("grabber");
|
||||
Ref<Texture2D> g = get_icon("grabber");
|
||||
int sep = get_constant("separation");
|
||||
sep = (dragger_visibility != DRAGGER_HIDDEN_COLLAPSED) ? MAX(sep, vertical ? g->get_height() : g->get_width()) : 0;
|
||||
|
||||
@@ -182,7 +182,7 @@ void SplitContainer::_notification(int p_what) {
|
||||
return;
|
||||
|
||||
int sep = dragger_visibility != DRAGGER_HIDDEN_COLLAPSED ? get_constant("separation") : 0;
|
||||
Ref<Texture> tex = get_icon("grabber");
|
||||
Ref<Texture2D> tex = get_icon("grabber");
|
||||
Size2 size = get_size();
|
||||
|
||||
if (vertical)
|
||||
|
||||
Reference in New Issue
Block a user