Commit Graph

133 Commits

Author SHA1 Message Date
Martín Lucas Golini
82008b9aee System Module refactored without changing colors. 2014-06-14 03:59:37 -03:00
Martín Lucas Golini
e71d79ccd8 Audio Module refactored. 2014-06-14 02:56:58 -03:00
Martín Lucas Golini
f9455c7556 Starting the redesign of eepp. This is the beggining of eepp 2, that basically
means a huge code refactoring, i'll remove eepp ugly conventions ( classes names
starting with c, static things with s, etc ).
First Changes:
No more eeFloat, eeDouble, eeUint, eeInt:
eeDouble isn't needed, so we use double.
eeFloat is ugly, i prefer Float.
eeUint is just unsigned int, and eeInt just... int!
No more sophist.h
Started hiding OpenGL, cGL now use standard types ( soon will be renamed ).
Added glextensions, glew isn't visible for the end user anymore.
( i'm looking for alternatives here, i'm not happy with GLEW ).
2014-06-14 02:43:42 -03:00
Martín Lucas Golini
d36f6e7ff2 Just a minor change in the test. 2014-06-08 16:20:49 -03:00
Martín Lucas Golini
f52be84ebb Fixed a null deferencing in cUIControl.
Removed cIsoMap, since it's not part of the library.
Fixed some minor bugs.
2014-06-01 21:34:04 -03:00
Martín Lucas Golini
0677771205 Updated SDL2 for Android. Updated the Android project to work with the new SDL2. 2013-12-22 18:22:49 -03:00
Martín Lucas Golini
62c83cb9b2 More work on text selection. 2013-12-22 11:54:13 -03:00
Martín Lucas Golini
e7c1084f62 Added cFont::SelectSubStringFromCursor, cFont::GetCursorPos.
Added support for string selection, copy and paste for cUITextBox, cUITextInput
and cUITextEdit.
2013-12-18 02:49:39 -03:00
Martín Lucas Golini
31937fad82 Added String::ToUtf16()
Added cUIDragable::OnDragStart and cUIDragable::OnDragEnd, and messages cUIMessage::MsgDragStart and cUIMessage::MsgDragEnd.
Improved cCursorManager, added global cursors.
Implemented some global cursors for the UI.
2013-12-11 03:05:12 -03:00
Martín Lucas Golini
721251e9ac Added cUIControl::WorldToControl and cUIControl::ControlToWorld.
Added cFont::FindClosestCursorPosFromPoint.
Added cUITextInput support for cursor position on mouse click.
Added Vector2::Scale and a couple of operators.
Renamed Quad2::RotateVectorCentered to Quad2::Rotate.
Renamed Vector2::RotateVector to Vector2::Rotate.
2013-12-08 03:41:15 -03:00
Martín Lucas Golini
30eea9934b Textures loaded from other thread than the main gl context thread, will use the
shared opengl context if available.
2013-11-19 02:30:43 -03:00
Martín Lucas Golini
0d0e582a78 Scaling elements now is done per axis. 2013-11-17 12:22:43 -03:00
Martín Lucas Golini
4bb1d7352c Fixed a bug in cTextCache::Color 2013-11-15 01:45:49 -03:00
Martín Lucas Golini
2e016791da Made all the examples Emscripten friendly.
cWindow::Display( bool clear = false ) now doesn't Clear by default.
Fixed a bug in cSprite::GetAABB().
2013-11-14 02:30:46 -03:00
Martín Lucas Golini
d40a10a07c Updated SOIL2. 2013-11-13 02:40:10 -03:00
Martín Lucas Golini
2e2c79d5fa Updated SOIL2.
Exposed the "GL_OES_compressed_ETC1_RGB8_texture" extension for desktops.
SDL2 window now is destroyed.
Changed cUIControlAnim::AngleInterpolation to cUIControlAnim::RotationInterpolation.
2013-10-05 21:29:59 -03:00
Martín Lucas Golini
31b54a71ec Now can be seted alpha to the color of the text cache.
Fixed alpha to cUITextBox when used custom colors.
2013-10-03 00:12:52 -03:00
Martín Lucas Golini
2850ab6bed Experimental changes, WARNING. 2013-10-01 18:19:52 -03:00
Martín Lucas Golini
7822e31919 Added Scroll Padding to cUIListBox ( this is needed algo in the cUIGenericGrid ).
cUIDragable reports control dragging to avoid focusing problems.
2013-09-30 23:46:11 -03:00
Martín Lucas Golini
cff7eb600f Added support for AsyncRequests in cHttp.
Added cThreadLocal and tThreadLocalPtr ( needed for the async requests ).
2013-09-30 02:04:06 -03:00
Martín Lucas Golini
aeb6dd4f07 Some code clean up:
Time is always measured with cTime.
Debugging log texts now are called with eePRINT/eePRINTL/eePRINTC.

Added some patches to EE::Network:
Request Methods: Head, Put, Delete added.
Support for chunked transfers in cHttp.

Changed version, we are now at 0.9.5, codename "Makyo".
2013-09-29 02:51:05 -03:00
Martín Lucas Golini
f09797c91c String::ToWideString wasn't returning a wide string...!
Enabled wide strings for Android ( i'll never target Android < 2.3 ).
EE_MAIN_FUNC is back, it was needed for the Android build ( i forgot about it ).
2013-08-29 02:01:59 -03:00
Martín Lucas Golini
3da6497420 Replaced EE_DYNAMIC for EE_STATIC, so now you need to specify that you are using
eepp as a static library, since the majority of the people will use the dynamic
it seems logic to use dynamic by default.
Removed all the EE_MAIN_FUNC and "main" func hacks, except the android and ios
ones that can't be removed ( i probably broke something here, it's a WIP.
Fixed Android compilation.
Added eepp-main.
2013-08-24 19:43:22 -03:00
Martín Lucas Golini
90d5833430 Fixed a Color::Blend, it was having problems with the floating point precision. 2013-08-23 23:06:52 -03:00
Martín Lucas Golini
54b491f623 Some minor additions to cImage.
And some minor changes in cIniFile.
cTexture now is NonCopyable.
cUIMenu checkbox creation now let you choose if is active when created.
2013-08-23 19:48:13 -03:00
Martín Lucas Golini
9409443df5 Fixd VC++ compilation.
SDL2 is now the default backend for VC++.
2013-08-16 00:39:51 -03:00
Martín Lucas Golini
f6a62fd5e0 Implemented changes to support cTime in eepp.
Changed cClock::Reset to cClock::Restart.
2013-08-15 03:16:31 -03:00
Martín Lucas Golini
0be6f1d60b Partial commit. I'm changing how the time is used in eepp, added a time class to ease the time management ( similar to SFML2 ). 2013-08-15 01:23:26 -03:00
Martín Lucas Golini
37c3438a06 Added OriginPoint to define the rotation and scale center in cTexture, cBatchRenderer, cSubTexture and cSprite.
Replaced all the ScaleCentered booleans with the new OriginPoint, this gives more flexibility.
Moved some includes in EE::UI, to optimize the recompilation time.
2013-06-30 01:04:54 -03:00
Martín Lucas Golini
3b38cc5572 Added support to texture loading in other thread when a shared gl context is available. 2013-06-29 20:15:24 -03:00
Martín Lucas Golini
650135bf77 Added assets folder to the repository. 2013-06-21 23:02:56 -03:00
Martín Lucas Golini
12087c1a65 Changed the text vertical draw implementation. Removed the bool to activate the vertical draw everywere, and added FONT_DRAW_VERTICAL flag to draw in vertical mode. 2013-06-20 02:38:56 -03:00
Martín Lucas Golini
9909f60f6d 2D Clipping planes stacks.
cFrameBuffer restores the previous matrix projection.
Added Set2DProjection to cWindow.
2013-06-09 16:52:06 -03:00
Martín Lucas Golini
9e10581668 Changed some enums. 2013-05-30 00:23:05 -03:00
Martín Lucas Golini
bd62abfe02 cImage::GetInfo now also Fallback To Packs. 2013-05-29 15:16:55 -03:00
Martín Lucas Golini
bfb58a9f40 Added "sprites" example.
Assets in eetest are loaded directly from the file system.
App icon now is searched in the local relative path.
Fixed some minor bugs.
Added userdata pointer to the sprites events.
2013-05-29 14:34:42 -03:00
Martín Lucas Golini
1517278451 Removed the stb_vorbis warnings.
Fixed audio.hpp includes.
Fixed sound example formating.
2013-05-29 01:13:52 -03:00
Martín Lucas Golini
0d84deb7f8 Changed a little thing in the joystick test. 2013-05-28 01:41:41 -03:00
Martín Lucas Golini
66ecf6c89d Fixed some minor bugs. 2013-05-25 17:49:03 -03:00
Martín Lucas Golini
e64cfe07d3 Improved GLES2 support.
Fixed VBOs for GLES2.
Fixed a bug in texture size calculation.
2013-05-25 04:20:16 -03:00
Martín Lucas Golini
c68b9c75f4 Fixed context initialization on Android. 2013-05-20 03:13:08 -03:00
Martín Lucas Golini
a241bb7949 Fixed a bug in cUIScrollbar and fixed a bad scrollbar resize in the Map Editor.
Improved premake4 for Visual Studio and OS X.
Added Over control highlighting.
2013-05-19 03:56:28 -03:00
Martín Lucas Golini
f8209dc7ef Implemented touch scrolling for cUIListBox and cUIGenericGrid, usefull for touch screens. 2013-05-18 02:20:19 -03:00
Martín Lucas Golini
47c66e098c Added swap endianess functions to BitOp.
Some minor fixes to the Map Editor UI.
eeColorA Uint32 constructor now use RGBA format, and added a Uint32 constructor for eeColor in RGB format.
2013-01-23 03:07:00 -03:00
Martín Lucas Golini
0bf0808f30 Added a new default theme. 2013-01-21 02:44:07 -03:00
Martín Lucas Golini
d628bb19ba Documented EE::Graphics.
ePolygon2f::CreateRoundedPolygon is now ePolygon2f::CreateRoundedRectangle.
2013-01-20 01:46:15 -03:00
Martín Lucas Golini
e57fa199c3 Documented some classes.
Did some API changes in cSubTexture and cSprite.
Moved to protected the constructors of singleton classes.
2013-01-19 19:06:49 -03:00
Martín Lucas Golini
fcca2c9b36 Fixed a minor bug in the UI map.
Nearest texture filter is now forced by default for the UI themes.
2013-01-17 12:05:17 -03:00
Martín Lucas Golini
57f179a84e Updated the TODOs and the state of each of them.
Removed the empty file: glhelper.cpp.
2013-01-15 01:51:55 -03:00
Martín Lucas Golini
0a741f2bc3 Added CreateSelectButton to cUITheme.
Added GetPrevState to cUISkinState.
Hided fonts constructors ( to avoid problems in the font manager if this are instanciated inside a function ).
Fixed the BLENDONE BlendMode.
Working in adding Polygons to the Map and Map Editor ( in very early stage ).
2013-01-11 01:22:55 -03:00