Commit Graph

86 Commits

Author SHA1 Message Date
spartanj
0575be5836 Modified the Makefile to support correct recompilation of modified files and now the objects files are stored in a separated folder.
Added OnItemClicked Event.
2010-12-07 01:24:51 -03:00
spartanj
3a75edae9a Fixed Show and Hide in PopUpMenu. 2010-12-05 05:03:48 -03:00
spartanj
17d39aaa3a Added cUIMenu, cUIPopUpMenu, cUISeparator, cUIMenuItem.
Implemented a basic PopUpMenu, still lack of some features.
Moved events as protected.
Fixed ChildAddAt.
Some other minor fixes.
2010-12-05 04:49:53 -03:00
spartanj
b6618e5c89 Fixed some details. Nothing relevant. 2010-11-30 00:50:45 -03:00
spartanj
f6a7c8b8f7 Some minor fixes.
Separeted the Clear statement from the Bind on cFrameBuffer, now the user has control of the cleaning.
2010-11-29 15:21:09 -03:00
spartanj
e2dc300efd Added cUIDropDownList and cUIComboBox ( both working, but not full featured ).
Added support for alpha fading for skins.
Fixed double linked list of cUIControl.
Fixed some minor bugs.
2010-11-29 04:41:36 -03:00
spartanj
6088fdd207 Fixed some bugs on cUIListBox. 2010-11-22 19:32:33 -03:00
spartanj
52f264753f Optimized memory usage of cUIListBox.
Optimized polygon2 template.
2010-11-22 18:39:06 -03:00
spartanj
61602716c0 Instances cUIBackground and cUIBorder only if necessary
Removed some compiler warnings.
Updated projects.
2010-11-17 02:26:19 -03:00
spartanj
0eefc79410 Linux CodeBlocks project updated. 2010-11-16 04:39:40 -03:00
spartanj
8538eb7eb3 Implemented double linked-list in the UI Controls, to optimize some process ( ChildAdd, ChildRemove, OverFind ).
Added cUITextBoxSimple, like cUITextBox without vertex buffers.
Added cUIListBoxContainer, a class to optimize the cUIListBox.
Added keyboard navigation in cUIListBox.
2010-11-16 04:38:41 -03:00
spartanj
19b7fa703e Some minor fixes on the ListBox. 2010-11-15 03:06:50 -03:00
spartanj
edf7faa2d2 Added Auto Padding options for skins. 2010-11-15 00:36:04 -03:00
spartanj
0e99579ee0 Completed cUIListBox. 2010-11-14 20:21:54 -03:00
spartanj
d5fdbd7146 Added cUIListBox and cUIListBoxItem. Almost implemented, already working but i think that i need to polish a couple of things.
Optimized the mouse over for the UI Controls.
Fixed some minor bugs.
Added Scale method to Polygon2.
2010-11-14 06:22:42 -03:00
spartanj
6fc41c6f97 A couple of minor changes on the UI. 2010-10-31 16:54:36 -03:00
spartanj
34f3f4048b I'm trying to locate a very very rare threading bug when loading multiple TTF fonts at the same time, but for the moment i coundn't reach it ( replicated only ONE time and i wasn't debugging! ).
I made some minor changes in the debugging functions to write to the log file too the information debuged.
Fixed glew include, trying to include from the include file path instead of the project file path.
To try to avoid the rare bug i moved the creation of the instance of the ttf font on the constructor of the ttf font loader ( to know if that fixes the problem i need to NOT replecate the bug again, so it will be a matter of time to know if that affect or not in the current bug ).
I said that i hate threading bugs?
2010-10-21 03:34:10 -03:00
spartanj
92191b3f93 Fixed a bug in stb_image ( reported the bug and how to fix it ).
Changed some things in HaikuTTF.
2010-10-19 18:33:02 -03:00
spartanj
e5744e349c Added a mutex on HaikuTTF, to fix a problem ( a.k.a. bug ) with multiple concurrence on FT calls.
Added Icon possibility to cUIPushButton.
Added default fonts for ui themes and global default font for all ui themes.
Changed how cUIGfx get shapes, now accept a new instance without shape.
Fixed how padding works on cUITextBox and cUITextInput.
Fixed font rendering in cTextCache when some text rendered with angle or/and scale ( it was breaking the model view matrix ).
Fixed a miscounting of the number of vertex for the cached text.
Fixed HaikuTTF destroy singleton ( now release fine the memory ).
2010-10-18 04:38:24 -03:00
spartanj
0a0530f52f Fixed MSVC compilation.
Removed some warnings.
Fixed a couple of bugs.
2010-10-16 21:52:34 -03:00
spartanj
1f8fe37edf Reimplemented cScrollParallax with shapes, and added new features.
Added cUIProgressBar control.
Fixed minor bugs on the UI.
2010-10-16 03:48:10 -03:00
spartanj
cb59a5275a Fixed Release Compilation.
Removed some warnings.
2010-10-14 03:12:43 -03:00
spartanj
4f1548c135 Added cUIScrollBar control.
Fixed a huge bug on the control states, now every control has a cUISkinState to keep the state data of the skined control.
Improved and made some fixes on cUISlider ( to work well with the scrollbar ).
2010-10-14 01:16:27 -03:00
spartanj
07fd433fb0 Fixed slider.
Removed duplicated virtual function.
2010-10-13 15:08:05 -03:00
spartanj
caa2dcc745 Added two theme loading functions to load themes from a folder path or a shape group.
Added clamp repeat simulation for shape rendering.
Another minor changes on the UI.
2010-10-13 04:26:43 -03:00
spartanj
e977420aa6 Added cUISpinBox control to the UI.
Added events when a value in a control change ( for the slider, checkbox, ratiobutton, spinbox ).
Fixed text alignment on cUITextBox.
2010-10-11 22:20:26 -03:00
spartanj
51ab5efd9d I forgot to save the changes. 2010-10-11 03:57:14 -03:00
spartanj
7fa61de408 Added cUISlider ( horizontal and vertical ).
Fixed some critical bugs on the UI.
2010-10-11 03:34:05 -03:00
spartanj
00f8d0ba92 Added cUICheckBox and cUIRadioButton controls for the UI.
Fixed and changed some things on the UI.
Replaced the printf for the eePRINT.
2010-10-10 03:12:25 -03:00
spartanj
181326273d Added cUIPushButton.
Added debug helper functions.
Fixed some skin state changes.
Improved UI performance.
Changed EE_PLATFORM_WIN32 for EE_PLATFORM_WIN, and added as platform WIN64.
Added detection of 64bits compilation.
Implemented some asserts.
2010-10-09 04:47:50 -03:00
spartanj
661ad2260a Added basic theming support for the UI ( work in progress ).
Added padding support for the textbox and textinput.
Some minor fixes.
2010-10-08 04:15:22 -03:00
spartanj
b071630924 Removed boost dependency ( now use PlusCallback for callbacks, and use my own lexical cast ). With this improved a lot the compiling time. As far as i could test, PlusCallback is faster than boos::function too.
I added a couple of checks to avoid rendering problems on fonts.
And added some minor fixes.
2010-10-01 04:49:36 -03:00
spartanj
0f03b3599a A couple of fixes, one in stb_info ( avoid division by zero ), and other in the GetTexture function on cSprite, now returns the correct data. 2010-09-23 03:56:56 -03:00
spartanj
9d7ff55c7a Fixed Shader Program Handler. 2010-09-11 04:03:47 -03:00
spartanj
89bb55df44 Restore on context lost vertex buffers and frame buffers.
Fixed some compiler warnings.
2010-09-09 16:44:31 -03:00
spartanj
c4a1a36892 Fixed compilation with MSVC++. 2010-09-08 05:30:59 -03:00
spartanj
f7f7fdcebd Fixed Doxyfile. 2010-09-07 15:32:42 -03:00
spartanj
79c61b9ce8 Changed MTRand class to cMTRand.
Added Update on VertexBuffer to update the data from memory to the gpu ( only usefull for the VBO ).
Updated windows project.
Changed EE_TEX_FILTER enum.
2010-09-04 21:45:38 -03:00
spartanj
6432fa9a9b Added support for multitexture binding.
Added some functions for tex env managing.
Modified some enum names from renders.
Added a pixel separator for characters in the ttf creation ( optional ).
Moved some OpenGL and GLEW things to cGL, this is for a future implementation with OpenGL ES and without GLEW.
Tryed to fix a bad rendering bug when clipping controls with borders ( borders disappear ), i think that the hack is working.
Modified some name conventions.
2010-09-04 05:28:41 -03:00
spartanj
f8703cd568 Added Vertex Buffer support ( cVertexBuffer base class (interface), cVertexBufferOGL fallback if gpu doesn't support VBO's, cVertexBufferVBO uses ARB Vertex Buffer Object ).
Added a Memory Manager to trace memory leaks.
Fixed some memory leaks detected with the new memory manager.
Added an allocator for STL ( to use it with the custom allocation seted in the memory manager ).
Fixed Makefiles ( i wroke them ).
2010-09-03 02:53:14 -03:00
spartanj
d9bd5d763f Added UpdateTextureAtlas function on cTextureGroupLoader. This is to update a current texture atlas, it will check if some image was changed and update it, and if some images where added or removed it will recreate the whole texture atlas.
Changed the name of the singleton template from cSingleton to tSingleton ( c is for class, and t for template, that's why i changed ).
Removed the using namespace std, and added std:: to the std methods and templates.
Added some API calls for windows dll.
Added SaveTypeToExtension and DirPathAddSlashAtEnd on utils.
2010-08-30 00:07:43 -03:00
spartanj
bb8760ec42 Fixed Mac OS X compilation, bug removed temporally the context access on Mac OS X, this is not necessary for any functionality right now.
It was added for the PBuffer class, but i'll not implement PBuffers on Mac OS X until i understand how Carbon and Cocoa works, and i don't have direct access to a Mac OS X ( only from a VM, and works slow as a cart ).
Changed the platform name from Apple to Mac OS X ( i don't even know what i was thinking when a put Apple as a Platform :P ).
2010-08-25 01:47:33 -03:00
spartanj
66ead32bcc Added support for Frame Buffers, FBO and PBuffer (win and linux ftm), better known as render to texture.
Added loading from memory of texture groups.
Fixed minor things.
2010-08-24 05:20:02 -03:00
spartanj
99f14bbd62 Fixed Windows compilation. 2010-08-23 15:01:02 -03:00
spartanj
f184be80f9 Removed unused code on HaikuTTF.
Changed cZip class, now use another library ( libzip and zlib ).
2010-08-23 05:16:13 -03:00
spartanj
aa2ac87280 Minor fix. 2010-08-22 20:16:53 -03:00
spartanj
41b55c8faa Added support for animated sprites loaded via a pattern, this is to take advantage of the texture packer.
Added a flag to the texture packer to remove the extensions of the shapes and shapegroups when loaded ( to easily find shapes ).
Modified a little how cSprite works, simplyfied some things.
2010-08-22 19:55:16 -03:00
spartanj
b6fd66beac Added support for OpenGL ES rendering ( not implemented really, just modified some renderings to render for OpenGL ES compilant code ). 2010-08-22 04:02:51 -03:00
spartanj
f06d48c04a Some minor changes on the packer and the batchrenderer. 2010-08-21 02:05:22 -03:00
spartanj
28868341ec Added cTexturePacker. Utility class to create texture atlas and save the subtextures as shapes.
Added cTextureGroupLoader. Utility class to load the texture atlas saved shapes ( sync and async ).
Added cTexturePackerNode and cTexturePackerTex, both are helpers to create the texture atlas, and not visibles to the end user.
Added some helpers functions for file path management.
Added some new functions for cImage. scaling, resize, thumnails, copy image into image, and some others, and moved some cTexture functions to cImage.
Added stbi_info support for BMP,PSD,HDR,PIC in stb_image.
Added Progress() function to cResourceLoader, to know the current loading progress in percent ( 0%-100% ).
Added api calls to some classes. But i'm still looking how to work with DLL.
Modified some details in cTimer and cTimeElapsed.
The code was only tested on linux, so, still need some checking, but, it's a lot of code, so i'll commit it and fix bugs if it's necessary.
2010-08-20 01:47:07 -03:00