Button event hinzugef黦t

master
seba 16 lat temu
rodzic 9de0171fc5
commit ce1f282bc0

@ -1,13 +1,14 @@
COMPILER = g++
OBJECTS = emath.o emath_opengl.o glcolor.o gldrawhelper.o glfontengine.o glrect.o gltexture.o matrix.o quaternion.o rotationsmatrix.o glgui/glgui.a
VERSION = 0.0.1
LIBNAME = segl
sgllib: $(OBJECTS)
sglar: $(OBJECTS)
rm -f sgllib.a
ar rfc sgllib.a $(OBJECTS)
rm -f lib$(LIBNAME).a
ar rfc lib$(LIBNAME).a $(OBJECTS)
%.o: %.cpp %.h
$(COMPILER) -c `sdl-config --cflags` $<

@ -16,3 +16,10 @@ GLGuiButton::GLGuiButton(int _eventid, std::string str, int _x, int _y, bool _ce
void GLGuiButton::onMouseOver(int m_x, int m_y) {
// L盲ngste stelle finden, dann collision
}
void GLGuiButton::onMouseClick(int m_x, int m_y, int m_button) {
SDL_Event e;
e.type = GLGUI_BUTTONDOWN;
e.user.code = eventid;
SDL_PushEvent(&e);
}

@ -30,7 +30,6 @@ class GLGuiWindow : public GLGuiObject {
void addItem(GLGuiObject*);
SDL_Rect getPos();
void render();
};
#endif

艁adowanie鈥
Anuluj
Zapisz