Button event hinzugefgt

This commit is contained in:
seba 2008-02-09 15:38:37 +01:00
parent 9de0171fc5
commit ce1f282bc0
3 changed files with 10 additions and 3 deletions

View File

@ -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` $<

View File

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

View File

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