Commit Graph

70 Commits

Author SHA1 Message Date
Martín Lucas Golini
ee7d738114 Polygons working on Maps and Map Editor. Still WIP. Not everything is implemented. 2013-01-12 19:25:04 -03:00
Martín Lucas Golini
bc0601f7d9 Working on the Map and Map Editor to support Polygon Objects. 2013-01-12 02:06:09 -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
Martín Lucas Golini
e5aaa448bc Hidded fonts constructors. 2013-01-10 11:42:14 -03:00
Martín Lucas Golini
59b4dede1e Added an interface to connect to the log, iLogReader. This is usefull for cConsole, and any external logger that need the internal log information.
Integrated this to cConsole.
Fixed a bug in the console, now supports text with more than one line.
Now the texture loading time is measured and reported in the log.
2013-01-10 01:24:08 -03:00
Martín Lucas Golini
9af8bd4912 Fixed cLog text flush.
Moved some public constructors in classes that are managed by a Resource Manager, because, they need an instance created with new.
Removed DrawEx2 from cTexture.
2013-01-09 23:39:37 -03:00
Martín Lucas Golini
47437749cd RenderType is now RenderMode.
cTextCache can now assign colors per char.
Fordward declared some classes.
cFrameBuffer constructor is now protected.
2013-01-09 16:50:00 -03:00
Martín Lucas Golini
b08de8b32d Fixed some bugs in Vector2.
Added some accesors to Quad2, Trangle2, Polygon2.
Reimplemented tColor and tColorA.
Fixed mingw32 build with premake4.
Fixed some minor bugs.
2013-01-06 03:21:30 -03:00
Martín Lucas Golini
f9c01974f6 Moved cSoundFileDefault and cSoundFileOgg to src ( this classes aren't public ).
Moved Sound States inside cSound.
2013-01-03 03:03:28 -03:00
Martín Lucas Golini
9fdffcabea Renamed cImage::Size() to cImage::MemSize(), since it was confusing.
cImage::Size() now returns the image dimensions.
Changed how cUIControl::SetSkin works, it was confusing, now just spects a Skin const reference and make a copy from it.
Fixed DoAfterSetTheme to be virtual, now SetSkin works for all the controls.
Restructured cPrimitives.
Removed some Draw* calls, since it was a little bit bloated, sometimes less is more.
Also added fill mode, blend mode and line width as members of the instance of the primitives class, this way i reduced the number of parameters in almost all the functions, and, it's cleaner.
2013-01-03 02:24:28 -03:00
Martín Lucas Golini
6631441522 Renamed Sys::GetStoragePath for Sys::GetConfigPath.
Fixed Sys::GetConfigPath for:
        Linux/BSD/Solaris: Now uses XDG_CONFIG_HOME by default ( respects the XDG Base Directory Spec: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html ).
        Haiku: Uses the default config path.
        iOS: Returns the process path + config.
        Android: Returns the internal storage path.
Fixed Sys::GetProcessPath for Android, now returns the external storage path ( i'm not sure about this, since, it's not the process path, but it's the closest thing for what it's used this function ).
2012-12-28 01:45:00 -03:00
Martín Lucas Golini
d5f0ac08d5 Texture packer now can add external images ( that could be loaded from memory ).
Added static function IsImage to cImage.
I've been doing some research to try to cross-compile iOS apps from Linux, but it seems that there are some problems, but i'll keep trying.
2012-12-25 16:49:45 -03:00
Martín Lucas Golini
e0361fc37f Nothing relevant, i'm preparing ( well, i don't know if it'll work ) iOS premake support. 2012-12-20 12:41:39 -03:00
Martín Lucas Golini
4d9124b459 Area also must be moved as not inline. 2012-12-17 14:45:37 -03:00
Martín Lucas Golini
8da0bc0c09 Minor fixes to make it work eepp as a dll in windows. 2012-12-17 13:06:59 -03:00
Martín Lucas Golini
1f42c01174 Fixed hgignore. It was ignoring files that didn't have to.
Added the files wrongly ignored.
Changed EE::MemoryManager::LogResults() to EE::MemoryManager::ShowResults().
Because it's not loging anything!
2012-12-17 00:29:06 -03:00
Martín Lucas Golini
6354eaf076 I'm gonna try to reduce the premake4.lua file size. 2012-12-16 01:59:22 -03:00
Martín Lucas Golini
63f47da256 Fixed OS X build. 2012-12-16 00:36:25 -03:00
Martín Lucas Golini
fcff1cb915 Removed the unused class cAudioResource.
Changed the assets path to "assets" instead of "data".
Removed the old openal.
2012-12-15 19:33:31 -03:00
Martín Lucas Golini
eda670495d Added openal-soft for android ( with OpenSL ES backend ).
Fixed some bugs in EE::Audio.
Added Codename to Version class ( revision name ).
Added GetPackPath() to packs.
Added GetPackByPath() to the pack manager.
SDL2 now works without any patch in Android.
2012-12-15 18:55:40 -03:00
Martín Lucas Golini
37a7f0b0aa Changed some String functions names. 2012-12-13 22:42:56 -03:00
Martín Lucas Golini
8ce9ebeaa8 Updated SDL 2.
Android port now auto opens the application apk, and use it as a virtual file system.
2012-12-13 14:45:15 -03:00
Martín Lucas Golini
daaf05a974 Fixed Android compilation.
Added functions to control virtual keyboard.
2012-12-13 03:08:52 -03:00
Martín Lucas Golini
8d35fcc416 Moved some header files that shouldn't be exposed to the users. 2012-12-11 02:28:51 -03:00
Martín Lucas Golini
7bdd1257f4 Fixed eeclamp.
Added a little tweak for texture fonts to support tabs.
2012-12-10 22:57:06 -03:00
Martín Lucas Golini
9fd3274de4 Added @TODOs ( future plans ).
Commented a couple of classes.
2012-12-10 15:43:06 -03:00
spartanj@gmail.com
398a305ff0 Added easy loading of texture atlases from the texture atlas manager. 2012-12-09 21:41:35 -03:00
spartanj@gmail.com
8f9df74af5 Added IsMaximized() to cWindow.
KeyCodeTables now are static in all backends.
2012-12-09 21:00:14 -03:00
spartanj@gmail.com
d41e078176 Added version class for eepp.
Fixed Pbuffers with shaders.
Fixed Map editor scroll when map is scaled.
Fixed Point Size in GL3 renderer.
Disabled VAO in VBOs.
2012-12-09 03:30:33 -03:00
spartanj@gmail.com
e50bf8ebf2 Added JpegQuality to cImage to set the jpg image save quality. 2012-12-08 22:46:20 -03:00
spartanj@gmail.com
ca9f02c425 Added jpg save type.
Added support for progressive jpeg using jpeg-compressor.
This changes were added mostly for eeiv, but they dont add much overhead.
I need to test if jpeg-compressor loader is faster than the stb_image implementation, to use it by default in that case.
2012-12-08 21:43:11 -03:00
spartanj@gmail.com
d77b94dd73 Documented the EE::Window namespace code a little bit. 2012-12-07 01:30:31 -03:00
spartanj@gmail.com
b336aa5feb Removed ugly include files from headers ( windows.h, Xlib, glew ).
Glew is still included by cGL, i'm hesitant about this, i'll think about it.
2012-12-06 18:17:51 -03:00
spartanj@gmail.com
183b923531 Moved eeWindowContext definitiion to windowcontext.hpp
Moved eeWindowHandle definition to windowhandle.hpp ( and changed the name from eeWindowHandler )
In windows eeWindowContex and eeWindowHandler are forward declared.
Still need to see how to implement this in linux ( os x shouldn't be a problem ).
HaikuTTF doesn't expose window.h or pthread.h anymore.
Added TryLock to cMutex.
2012-12-06 01:55:32 -03:00
spartanj@gmail.com
9f49dbce0d FFixed windows build. 2012-12-05 03:04:39 -03:00
spartanj@gmail.com
d9a9abf971 Cleaning up some includes. 2012-12-05 02:08:32 -03:00
spartanj@gmail.com
41d8c861c1 Changed some enum names. 2012-12-04 16:01:55 -03:00
spartanj@gmail.com
882c2a26d7 Cleaned up Math module. Still thinking about this.
Move all the collision code to the respective templates, instead of containing all in the math.hpp file.
Removed unnecesary dependency of EE::System on EE::Math, not really needed.
2012-12-03 17:52:26 -03:00
spartanj@gmail.com
3b244b5170 Minor changes. 2012-12-03 00:45:03 -03:00
spartanj@gmail.com
810272e101 Fixed Doxyfile.
Changed in String class: toStr to ToStr and fromString to FromString ( since everthing else starts with uppercase characters ).
Added BitOp static class, just some helpers for bit operations.
2012-12-02 23:34:32 -03:00
spartanj@gmail.com
4ea3cdb9ef Added premake4.lua file, to create projects more easily, still WIP.
Cleaned up a little bit the MemoryManager, i'm looking how to make it work when
eepp is compiled as a shared library.
2012-12-02 03:05:55 -03:00
spartanj@gmail.com
ce2f9f008c Added loading for textures from iostream.
Changed GetPosition to Tell in cIOStream.
2012-12-02 00:40:05 -03:00
spartanj@gmail.com
40086e3bc3 Added BlendMode class to set the blend mode, since it doesn't make sense to control the blend mode in the texture factory.
Added Clear() method to cWindow, to allow the user to control WHEN clear the buffers.
Added some operators to eeColorA.
Fixed BlendMode for FBO's.
Hided cTexture constructors, the only class that it's allowed to create textures is cTextureFactory.
2012-12-01 20:06:11 -03:00
spartanj@gmail.com
7a16c52f2a Moved string hash functions.
Fixed a couple of minor bugs.
Cleaned up some code.
2012-12-01 03:10:09 -03:00
spartanj@gmail.com
604b926a7f Fixed all texture atlas references names.
Changed texture atlas binary file extension to "eta" and magic code to EETA ( Entropia Engine Texture Atlas ).
Removed EE::Utils, moved classes to EE::Math and EE::System. Still deciding this, but i need to commit, because of the number of changes, i don't want to lose anything.
And many many changes more.
2012-11-30 22:54:42 -03:00
spartanj@gmail.com
8e1988a392 Inlined math functions.
Removed using namespace EE::Math inside eepp ( i'm not sure why yet... :) )
2012-11-30 01:37:15 -03:00
spartanj@gmail.com
6638ff2be9 Clened up EE::Gaming. 2012-11-29 18:20:39 -03:00
spartanj@gmail.com
1c5bee0655 Changed a detail in Sys::GetProcessPath. 2012-11-29 17:42:40 -03:00
spartanj@gmail.com
8209dbc108 Oh crap, it seems that some files have never been added into the repositories...!
On the other side, i broke everthing, eepp is starting to look better.
2012-11-29 17:34:18 -03:00
spartanj@gmail.com
888eb0fd1e Removed unused math funcs.
Changed StoragePath to GetStoragePath.
2012-11-29 14:56:24 -03:00