Commit Graph

97 Commits

Author SHA1 Message Date
Martín Lucas Golini
19574ded69 Fixed cIOStreamMemory::Read(). Now memory stream files works with the texture loader. 2013-01-25 03:29:15 -03:00
Martín Lucas Golini
ced581742c Added PVR support ( but i need to rework the texture loader, it's horrible ).
Fixed a minor memory leak.
2013-01-25 02:29:19 -03:00
Martín Lucas Golini
67fbab0e15 Updated SOIL2. 2013-01-25 00:07:03 -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
fdb7af70d9 Some minor fixes to the UI.
Started working on the PVRTC loader. Nothing commited yet.
2013-01-22 02:25:06 -03:00
Martín Lucas Golini
ae8c75d97d Added OnDrag event to be able to intercept the drag event.
Added dragging the map in the map editor with the mouse middle press.
2013-01-21 03:17:45 -03:00
Martín Lucas Golini
0bf0808f30 Added a new default theme. 2013-01-21 02:44:07 -03:00
Martín Lucas Golini
d9663aacb7 Added NonCopyable and cLock. 2013-01-20 02:19:16 -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
32a58772b4 Commented some EE::Graphics classes.
Modified the cScrollParallax class.
2013-01-19 01:25:09 -03:00
Martín Lucas Golini
5790219b25 Added Map resizing from the Map Editor.
Fixed a bug in cLog.
Renamed cUIControl::CalcDistToBorder() to cUIControl::UpdateAnchorsDistances().
2013-01-18 02:54:52 -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
74b5cf6a04 Documented EE::System. 2013-01-16 23:25:26 -03:00
Martín Lucas Golini
46bfc2bbb2 Documented some EE::System classes.
Cleaned a little bit the API in cIniFile and cRC4.
2013-01-16 01:29:50 -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
86aed4994d Map Editor polygon editing points implemented. 2013-01-14 16:25:44 -03:00
Martín Lucas Golini
1584b68981 Working on poly point selection in the Map Editor, commited because i'm gonna break things. 2013-01-14 14:50:59 -03:00
Martín Lucas Golini
e5b2772b29 Poly Objects properties are now editable via the Map Editor.
Layer name can be changed from the Map Editor.
Fixed a bug in Map loading.
2013-01-13 22:14:42 -03:00
Martín Lucas Golini
34c5334436 Minor fix. 2013-01-13 01:50:17 -03:00
Martín Lucas Golini
2454793b01 Now you can select and move polygons in the map editor.
Added Move to Polygon.
Fixed Primitive Polygon draw when used DRAW_LINE.
2013-01-13 00:56:03 -03:00
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
9b746df064 Added a little optimization of the external_shader demo for ARM. 2013-01-10 01:57:56 -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
8174d295d4 Fixed a bug introduced in the last commit. 2013-01-03 02:36: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
bf81f1d6d5 Changed std::vector for SafeDataPointer for internal FileSystem FileGet. 2013-01-01 21:28:11 -03:00
Martín Lucas Golini
43d581bbe6 Merged minor changes. 2012-12-28 18:49:15 -03:00
Martín Lucas Golini
8420578671 A couple of fixes in Sys::GetConfigPath. 2012-12-28 03:33:43 -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
d7fd2f7a5c Separated mingw32 cross-build from windows mingw32 build.
Some fixes to the premake4 file.
2012-12-19 02:19:22 -03:00
Martín Lucas Golini
8d4cc9c5bf WTH -static-libstdc++, i can't get it work! 2012-12-18 03:07:28 -03:00
Martín Lucas Golini
371745de2f Changed the linux project to use the premake4 Makefile instead of the old one.
Changed how GLES is seted to build ( with newoption ).
2012-12-18 00:54:49 -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
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
be32d5e049 Worked a little bit on the premake file. 2012-12-16 04:20:11 -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
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