Commit Graph
100 Commits
Author SHA1 Message Date
Martín Lucas Golini 6edbf33ac6 Some bugfixes and added Map Editor tool.
--HG--
branch : dev-2.1
2018-01-28 04:55:26 -03:00
Martín Lucas Golini c55e86455d Minor refactor.
--HG--
branch : dev-2.1
2018-01-27 20:53:27 -03:00
Martín Lucas Golini e630918918 Minor changes.
--HG--
branch : dev-2.1
2018-01-27 16:43:01 -03:00
Martín Lucas Golini e75826e6cf Minor changes to Window.
--HG--
branch : dev-2.1
2018-01-27 12:50:29 -03:00
Martín Lucas Golini 97a9fe8d07 Added DisplayManager::enableScreenSaver and DisplayManager::disableScreenSaver.
--HG--
branch : dev-2.1
2018-01-27 04:13:42 -03:00
Martín Lucas Golini 3c0e4d7ed5 Added Window::DisplayManager ( implementing DisplayManagerSDL2 and DisplayManagerSFML ).
Engine instance is now automatically started and destroyed.
Forced the default working directory as the process path directory at start.

--HG--
branch : dev-2.1
2018-01-27 03:55:39 -03:00
Martín Lucas Golini 80e04d0d5b Some minor fixes.
--HG--
branch : dev-2.1
2018-01-27 00:44:52 -03:00
Martí­n Lucas Golini 6acfd50001 Changed display pixel density calculation.
--HG--
branch : dev-2.1
2018-01-26 16:53:57 -03:00
Martín Lucas Golini 3bb3475238 Set TextureFilter to Texture Atlas.
--HG--
branch : dev-2.1
2018-01-26 02:25:53 -03:00
Martín Lucas Golini d4e5d84631 Fixed Android build.
Updated SDL2 to SDL 2.0.8 (current dev).

--HG--
branch : dev-2.1
2018-01-26 01:25:11 -03:00
Martín Lucas Golini b4982e5554 Added Texture Atlas Editor as a tool app.
Added Window::getCurrentDisplayDPI and Window::getDisplayPixelDensity.
Also some minor fixes.

--HG--
branch : dev-2.1
2018-01-26 00:28:32 -03:00
Martín Lucas Golini 9af7ea19c9 Minor refactor.
--HG--
branch : dev-2.1
2018-01-22 02:53:38 -03:00
Martín Lucas Golini 85cb16a4ec Use Nearest filter by default in sprite fonts.
--HG--
branch : dev-2.1
2018-01-22 00:21:55 -03:00
Martín Lucas Golini fba9460bfd Added FontSprite class for font sprite support ( XNA Font Sprites ).
--HG--
branch : dev-2.1
2018-01-22 00:17:48 -03:00
Martín Lucas Golini 04e4646130 TextureFactory::bind fixed.
Added BMFont support.

--HG--
branch : dev-2.1
2018-01-21 20:38:16 -03:00
Martín Lucas Golini 65e7c3af6a Removed a warning.
--HG--
branch : dev-2.1
2018-01-20 23:35:26 -03:00
Martín Lucas Golini cadfcde531 Fixed MSVC build.
--HG--
branch : dev-2.1
2018-01-20 23:30:13 -03:00
Martín Lucas Golini 71530bffef Fix correct use of iterators ( cppcheck warnings ).
--HG--
branch : dev-2.1
2018-01-19 21:09:04 -03:00
Martín Lucas Golini 1e88d82684 Resize the batch renderer instead of flushing it when the number of vertex
reach the limit.

--HG--
branch : dev-2.1
2018-01-19 20:42:24 -03:00
Martín Lucas Golini 8cd531602b Simplified the renderers, added RendererGLShader, a base class for all the shader based renderers ( GL3, GL3CP, GLES2 ).
Converted the shaders strings as raw string literals.

--HG--
branch : dev-2.1
2018-01-19 00:08:44 -03:00
Martín Lucas Golini 0801d4c23d Added support to GL_TEXTURE_MATRIX on the renderers.
Added Texture::CoordinateType and implemented the support to the TextureFactory::bind.
Some refactor was made.
Text now uses CoordinateType::Pixel.

--HG--
branch : dev-2.1
2018-01-18 02:31:53 -03:00
Martín Lucas Golini 1815b9f6d3 Allow to batch any primitive type by point.
--HG--
branch : dev-2.1
2018-01-17 02:53:06 -03:00
Martí­n Lucas Golini 249d605261 Merge with dev-2.1-transformable-node
--HG--
branch : dev-2.1
2018-01-15 17:29:13 -03:00
Martí­n Lucas Golini 6e61171a85 Minor test.
--HG--
branch : dev-2.1-transformable-node
2018-01-15 17:27:19 -03:00
Martí­n Lucas Golini d59f25168f Clean up and fixes.
--HG--
branch : dev-2.1-transformable-node
2018-01-15 16:58:00 -03:00
Martí­n Lucas Golini 5ec7a0cbed Transformable working.
--HG--
branch : dev-2.1-transformable-node
2018-01-15 16:34:29 -03:00
Martín Lucas Golini b18c7b06e8 WIP doesn't work.
--HG--
branch : dev-2.1-transformable-node
2018-01-15 14:36:04 -03:00
Martín Lucas Golini 5fd3e55344 Reverted bad refactor.
--HG--
branch : dev-2.1
2018-01-15 02:30:02 -03:00
Martí­n Lucas Golini b1947d6d0b Minor refactor.
Added Math::Transformable.

--HG--
branch : dev-2.1
2018-01-14 19:59:37 -03:00
Martín Lucas Golini fb8a8ac797 Update dirty view.
--HG--
branch : dev-2.1
2018-01-14 14:00:10 -03:00
Martín Lucas Golini f417b9374c UIManager::update and UINode::update receive the delta time as parameter.
--HG--
branch : dev-2.1
2018-01-14 04:53:50 -03:00
Martín Lucas Golini 8bff88a89a Minor clean up.
--HG--
branch : dev-2.1
2018-01-14 04:28:54 -03:00
Martín Lucas Golini 3412554446 Minor change.
--HG--
branch : dev-2.1
2018-01-14 04:04:06 -03:00
Martín Lucas Golini 20a07c86f3 Cache UINode polygon and screen position.
Renamed all UI_CTRL_FLAG_* to NODE_FLAG_*.
Several minor fixes.

--HG--
branch : dev-2.1
2018-01-14 03:51:08 -03:00
Martín Lucas Golini 4c39f29334 Clean up.
--HG--
branch : dev-2.1
2018-01-14 00:39:35 -03:00
Martí­n Lucas Golini a89b0a78bd Added Actions: Dealy, Sequence, Spawn.
Fixed several minor bugs in Actions.

--HG--
branch : dev-2.1
2018-01-13 19:29:59 -03:00
Martín Lucas Golini c5c97c0ff7 Small fix.
--HG--
branch : dev-2.1
2018-01-13 02:28:31 -03:00
Martí­n Lucas Golini 37720c3fc8 Added Action::MarginMove.
--HG--
branch : dev-2.1
2018-01-12 17:00:05 -03:00
Martín Lucas Golini 5dcd5e4c82 New version number and codename.
--HG--
branch : dev-2.1
2018-01-12 02:00:47 -03:00
Martín Lucas Golini ea427b21bc Added UIAction and UIActionManager. Every node now can implement actions.
Implemented base actions: Move, Scale, Fade, Rotate.

--HG--
branch : dev-2.1
2018-01-12 01:41:53 -03:00
Martín Lucas Golini af3af9bef0 Renamed all the functions with "*Subset*" to "*TexCoord".
--HG--
branch : dev-2.1
2018-01-11 22:56:58 -03:00
Martín Lucas Golini 29b5251f97 Renamed SubTexture to TextureRegion.
Fixed a bug with frambuffers and views.

--HG--
branch : dev-2.1
2018-01-11 21:17:01 -03:00
Martín Lucas Golini 68534548a3 Moved Window::View to Graphics::View.
Force DefaultView for UI.

--HG--
branch : dev-2.1
2018-01-11 19:06:36 -03:00
Martín Lucas Golini 3a4a51423f Optimized imports.
--HG--
branch : dev-2.1
2018-01-11 18:43:24 -03:00
Martín Lucas Golini c470008104 Better views and viewport in ratio instead of pixels.
--HG--
branch : dev-2.1
2018-01-11 03:09:49 -03:00
Martín Lucas Golini f0d070556c Minor clean up and fixes.
--HG--
branch : dev-2.1
2018-01-11 00:51:06 -03:00
Martín Lucas Golini d025754630 Minor fix.
--HG--
branch : dev-2.1
2018-01-07 20:51:19 -03:00
Martín Lucas Golini ef5e6a39dc Fixed critical bug in IniFile.
--HG--
branch : dev-2.1
2018-01-07 18:43:59 -03:00
Martín Lucas Golini fd0694939a Minor fix.
--HG--
branch : dev-2.1
2018-01-07 14:57:49 -03:00
Martín Lucas Golini c458f19cf0 Added System::DirectoryPack.
--HG--
branch : dev-2.1
2018-01-06 03:45:09 -03:00
Martín Lucas Golini 2ffa9e4734 Added System::VirtualFileSystem.
--HG--
branch : dev-2.1
2018-01-06 02:55:52 -03:00
Martín Lucas Golini 4ee322b8b0 Added IOStreamPak.
--HG--
branch : dev-2.1
2018-01-05 21:03:08 -03:00
Martín Lucas Golini de72fac876 Implemented IOStreamZip.
Added Pack::getFileStream.

--HG--
branch : dev-2.1
2018-01-05 02:40:15 -03:00
Martín Lucas Golini 29fbf473e3 Removed AGL dependency on macOS ( deprecated a long time ago ).
--HG--
branch : dev-2.1
2018-01-05 01:23:12 -03:00
Martí­n Lucas Golini e21daabe65 Renamed UIControl to UINode.
Removed UIControlAnim and UIDragableControl.
UIControlAnim and UIDragableControl implemented in base UINode.

--HG--
branch : dev-2.1
2018-01-02 02:37:23 -03:00
Martín Lucas Golini 04a605c684 Small fix, SDL_GetWindowBordersSize is available since SDL 2.0.5 ( instead of 2.0.4 ).
--HG--
branch : dev-2.1
2018-01-01 15:35:00 -03:00
Martín Lucas Golini c1c3dfb075 Fixed glew includes.
--HG--
branch : dev-2.1
2018-01-01 15:07:54 -03:00
Martín Lucas Golini d00587c318 Better android build scripts.
--HG--
branch : dev-2.1
2017-12-31 14:00:41 -03:00
Martí­n Lucas Golini 1e7991b70e Moved Sys::getDiskFreeSpace to FileSystem::getDiskFreeSpace.
Added Sys::getPlatform.

--HG--
branch : dev-2.1
2017-12-30 19:45:01 -03:00
Martín Lucas Golini 77637f71fa Moved "src/eepp/helper" folder to "src/thirdparty".
Also some minor fixes.

--HG--
branch : dev-2.1
2017-12-30 14:29:38 -03:00
Martín Lucas Golini dcc905c4f8 Minor changes.
Interpolation setTotalTime now is setDuration.

--HG--
branch : dev
2017-12-30 00:31:14 -03:00
Martín Lucas Golini f907d89367 Fixed IniFile::getValueB.
Added FileSystem::changeWorkingDirectory( Sys::getProcessPath() ); in demos.

--HG--
branch : dev
2017-12-29 22:35:43 -03:00
Martín Lucas Golini e28f606f38 Added PlatformHelper ( moved all the Android platform helpers there ).
Fixed a couple of minor bugs.

--HG--
branch : dev
2017-12-29 22:06:36 -03:00
Martín Lucas Golini aada050aa3 Added FileSystem::changeWorkingDirectory, FileSystem::getCurrentWorkingDirectory
and FileSystem::filePathRemoveCurrentWorkingDirectory.

--HG--
branch : dev
2017-12-29 10:52:58 -03:00
Martín Lucas Golini a7c1d587ed Renamed FileSystem::getOSlash to FileSystem::getOSSlash.
Added FileSystem::dirRemoveSlashAtEnd.
FileSystem::fileExists now returns true if directory exists.

--HG--
branch : dev
2017-12-28 15:49:00 -03:00
Martín Lucas Golini 4709d662e4 Removed null backend.
--HG--
branch : dev
2017-12-27 01:28:31 -03:00
Martín Lucas Golini e8edff36d1 Fixed Interpolation1d::waitAndAdd.
Fixed a couple of warnings on VC++.

--HG--
branch : dev
2017-12-27 00:11:51 -03:00
Martín Lucas Golini 3606290585 Make shared gl context optional.
--HG--
branch : dev
2017-12-24 13:35:54 -03:00
Martín Lucas Golini 3303defc5f Refactorized Interpolation1d and Interpolation2d.
--HG--
branch : dev
2017-12-24 03:50:43 -03:00
Martín Lucas Golini cef3f15ca0 Fixed clipping planes in GLES2.
--HG--
branch : dev
2017-12-23 17:17:30 -03:00
Martín Lucas Golini 593848cc61 Minor fix.
--HG--
branch : dev
2017-12-23 16:36:17 -03:00
Martín Lucas Golini 09d94cb9bc Scrollbar auto size from button.
--HG--
branch : dev
2017-12-23 14:31:21 -03:00
Martí­n Lucas Golini 032be3a754 Allow text to set originpoint for rotation and scale.
Also some minor changes.

--HG--
branch : dev
2017-12-22 02:25:30 -03:00
Martín Lucas Golini ab46ce01dc Added some XML properties to UIWidget.
--HG--
branch : dev
2017-12-21 00:27:39 -03:00
Martín Lucas Golini 0c18dc5bd8 Fixed Window::toggleFullscreen.
--HG--
branch : dev
2017-12-20 02:23:54 -03:00
Martín Lucas Golini 421c1c4434 Color buffer support.
--HG--
branch : dev
2017-12-19 02:11:30 -03:00
Martín Lucas Golini e807877cdd Added:
UIWidgetCreator::registerWidget
UIWidgetCreator::unregisterWidget
UIWidgetCreator::isWidgetRegistered

--HG--
branch : dev
2017-12-17 03:17:27 -03:00
Martín Lucas Golini 1902a22783 Fixed wrong time elapsed in UIManager.
Fixed backgorunds drawable alpha.

--HG--
branch : dev
2017-12-17 02:58:47 -03:00
Martí­n Lucas Golini 26543d73e7 UITextView::setText fixed.
--HG--
branch : dev
2017-12-16 23:40:37 -03:00
Martí­n Lucas Golini 2b8cbd41fb WidgetCallback fix.
--HG--
branch : dev
2017-12-16 22:28:04 -03:00
Martí­n Lucas Golini f625e9d98a Minor refactor.
--HG--
branch : dev
2017-12-16 21:29:53 -03:00
Martí­n Lucas Golini 5126886b48 Fixes.
--HG--
branch : dev
2017-12-16 19:06:12 -03:00
Martín Lucas Golini 21e2a52c8c Don't invalidate UITextView setters if same value is passed.
--HG--
branch : dev
2017-12-16 13:55:16 -03:00
Martí­n Lucas Golini 864a1a8aa6 Texture Atlas packs the optimal number of channels.
--HG--
branch : dev
2017-12-14 00:24:08 -03:00
Martí­n Lucas Golini b5a95f4906 Texture packer fix.
Texture Atlas Editor offset set fix.

--HG--
branch : dev
2017-12-11 02:49:20 -03:00
Martí­n Lucas Golini d32d362328 Enum types refactor.
Renderer refactor and more.

--HG--
branch : dev
2017-12-10 21:29:43 -03:00
Martí­n Lucas Golini 889db7b107 Drawable Type in Drawable class.
--HG--
branch : dev
2017-12-10 19:08:08 -03:00
Martí­n Lucas Golini 715d2d30b0 Replaced BlendMode with a new class.
--HG--
branch : dev
2017-12-10 18:13:31 -03:00
Martí­n Lucas Golini 8ac301ed73 Added discardFramebuffer for FBOs.
Updated glew.

--HG--
branch : dev
2017-12-10 16:33:26 -03:00
Martí­n Lucas Golini d706560ea2 Fixed blend func on OpenGL ES.
--HG--
branch : dev
2017-12-10 13:57:32 -03:00
Martí­n Lucas Golini 4f07b9d8d3 VertexBuffers when binding must draw any previous batch.
--HG--
branch : dev
2017-12-10 12:16:03 -03:00
Martí­n Lucas Golini a0ea822978 Sys::getProcessPath now doesn't need a window to return a valid path.
--HG--
branch : dev
2017-12-10 03:28:41 -03:00
Martí­n Lucas Golini 0ff5a90494 Added android gradle project.
--HG--
branch : dev
2017-12-10 00:30:00 -03:00
Martí­n Lucas Golini 07dd0ae516 Moved app icon.
--HG--
branch : dev
2017-12-10 00:08:17 -03:00
Martí­n Lucas Golini 4d38101c08 Moved android ant project.
--HG--
branch : dev
2017-12-10 00:05:09 -03:00
Martín Lucas Golini 900421b1d9 Fixed a text rendering error when a font is resized more than once in a geometry update.
Fixed a couple of OpenSSL warnings for OpenSSL 1.1.

--HG--
branch : dev
2017-12-09 20:03:07 -03:00
Martí­n Lucas Golini 58e753f418 Framebuffer optimizations.
--HG--
branch : dev
2017-12-09 15:53:50 -03:00
Martí­n Lucas Golini 8908937a3c Added UIWindow::invalidated().
--HG--
branch : dev
2017-12-09 13:31:19 -03:00
Martí­n Lucas Golini 52780c9410 Fixed VertextBufferOGL on mobile.
--HG--
branch : dev
2017-12-08 11:08:47 -03:00
Martí­n Lucas Golini 6c6c843cd5 Fixed GL3CP on GLES2.
--HG--
branch : dev
2017-12-08 10:37:35 -03:00