You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Move ShaderCreateDialog's ShaderType enum out of the header
This commit is contained in:
@@ -37,6 +37,13 @@
|
|||||||
#include "scene/resources/visual_shader.h"
|
#include "scene/resources/visual_shader.h"
|
||||||
#include "servers/rendering/shader_types.h"
|
#include "servers/rendering/shader_types.h"
|
||||||
|
|
||||||
|
enum ShaderType {
|
||||||
|
SHADER_TYPE_TEXT,
|
||||||
|
SHADER_TYPE_VISUAL,
|
||||||
|
SHADER_TYPE_INC,
|
||||||
|
SHADER_TYPE_MAX,
|
||||||
|
};
|
||||||
|
|
||||||
void ShaderCreateDialog::_notification(int p_what) {
|
void ShaderCreateDialog::_notification(int p_what) {
|
||||||
switch (p_what) {
|
switch (p_what) {
|
||||||
case NOTIFICATION_ENTER_TREE: {
|
case NOTIFICATION_ENTER_TREE: {
|
||||||
|
|||||||
@@ -44,13 +44,6 @@ class EditorFileDialog;
|
|||||||
class ShaderCreateDialog : public ConfirmationDialog {
|
class ShaderCreateDialog : public ConfirmationDialog {
|
||||||
GDCLASS(ShaderCreateDialog, ConfirmationDialog);
|
GDCLASS(ShaderCreateDialog, ConfirmationDialog);
|
||||||
|
|
||||||
enum ShaderType {
|
|
||||||
SHADER_TYPE_TEXT,
|
|
||||||
SHADER_TYPE_VISUAL,
|
|
||||||
SHADER_TYPE_INC,
|
|
||||||
SHADER_TYPE_MAX,
|
|
||||||
};
|
|
||||||
|
|
||||||
struct ShaderTypeData {
|
struct ShaderTypeData {
|
||||||
List<String> extensions;
|
List<String> extensions;
|
||||||
String default_extension;
|
String default_extension;
|
||||||
|
|||||||
Reference in New Issue
Block a user