Skip to content

Commit

Permalink
added bin folder for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Limeoats committed Oct 21, 2016
1 parent d288921 commit 224b4b7
Show file tree
Hide file tree
Showing 4 changed files with 532 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ else()
install(TARGETS Lime2D DESTINATION ~/Library/Frameworks/Lime2D/lib)
install(FILES src/lime2d.h src/lime2d_internal.h DESTINATION ~/Library/Frameworks/Lime2D/include)
endif()
install(TARGETS Lime2D DESTINATION ${CMAKE_CURRENT_LIST_DIR}/bin/Lime2D/lib)
install(FILES src/lime2d.h src/lime2d_internal.h DESTINATION ${CMAKE_CURRENT_LIST_DIR}/bin/Lime2D/include)

add_custom_command(
TARGET Lime2D
Expand Down
58 changes: 58 additions & 0 deletions bin/Lime2D/include/lime2d.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/*
* Lime2d.h
* By: Mark Guerra
* Created on: 6/9/2016
* Copyright (c) 2016 Limeoats
*/

#ifndef LIME2D_LIME2D_H
#define LIME2D_LIME2D_H

#include <SFML/Graphics.hpp>
#include <array>

#include "lime2d_internal.h"

namespace l2d {
class Editor {
public:
explicit Editor(bool enabled, sf::RenderWindow* window);
void toggle(std::string mapName = "l2dSTART");
bool isEnabled();
void processEvent(sf::Event &event);
void render();
void update(sf::Time elapsedTime);
void exit();
private:
bool _enabled;
bool _windowHasFocus;
bool _showGridLines;
bool _showEntityList;
bool _eraserActive;
bool _tilesetEnabled;
bool _mainHasFocus;
bool _removingShape;
bool _hideShapes;

int _menuClicks;

sf::Vector2f _lastFrameMousePos;

l2d_internal::Features _currentFeature;
sf::RenderWindow* _window;
std::shared_ptr<l2d_internal::Graphics> _graphics;
l2d_internal::Level _level;
sf::Shader _ambientLight;
std::vector<std::array<sf::Vertex, 2>> _gridLines;
l2d_internal::DrawShapes _currentDrawShape;
l2d_internal::MapEditorMode _currentMapEditorMode;
sf::Event _currentEvent;
std::shared_ptr<l2d_internal::Shape> _selectedShape;
l2d_internal::WindowTypes _currentWindowType;

void createGridLines(bool always = false);
};
}


#endif //LIME2D_LIME2D_H
Loading

0 comments on commit 224b4b7

Please sign in to comment.