Files
imgui-godot/doc/examples/Module/modules/mymod/mynode.h
Patrick Dawson c17e72a546 GDExtension (#56)
Merge GDExtension
2024-04-29 18:40:26 -07:00

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;
};