mirror of
https://github.com/pkdawson/imgui-godot.git
synced 2026-09-16 11:44:18 +00:00
22 lines
320 B
C++
22 lines
320 B
C++
#pragma once
|
|
#include "scene/main/node.h"
|
|
#include "scene/resources/texture.h"
|
|
|
|
class MyNode : public Node
|
|
{
|
|
GDCLASS(MyNode, Node);
|
|
|
|
protected:
|
|
static void _bind_methods();
|
|
|
|
void _notification(int what);
|
|
|
|
public:
|
|
MyNode();
|
|
~MyNode();
|
|
|
|
private:
|
|
Ref<Texture2D> _img;
|
|
float _iconSize = 64.f;
|
|
};
|