Age | Commit message (Collapse) | Author | |
---|---|---|---|
2009-06-25 | Renamed *cursorNum identifiers in Mouse to *cursorType for consistency. | Denis Kasak | |
svn-id: r41866 | |||
2009-06-25 | Added transformToRows() static method to Sprite. Modified Sprite ↵ | Denis Kasak | |
constructors to use it. svn-id: r41865 | |||
2009-06-25 | Implemented some more methods in Mouse so all mouse-related events are ↵ | Denis Kasak | |
handled through it. svn-id: r41861 | |||
2009-06-24 | Started work on the Mouse class. | Denis Kasak | |
svn-id: r41840 | |||
2009-06-22 | Changed Font::fillScreen() to accept a uint8 instead of a uint16. | Denis Kasak | |
svn-id: r41780 | |||
2009-06-22 | * Expanded docs for the Sprite class | Denis Kasak | |
* Added Surface and Screen docs * Small documentation fixes svn-id: r41779 | |||
2009-06-22 | Documentation fix for the Font class. | Denis Kasak | |
svn-id: r41776 | |||
2009-06-22 | Replaced return values with Common::k*Error constants. | Denis Kasak | |
svn-id: r41775 | |||
2009-06-19 | Updated the demo animation to use the new Surface features (transparency, ↵ | Denis Kasak | |
dirty rects). Changed background to light grey. A transparent string is now drawn over the dragon sprite. svn-id: r41658 | |||
2009-06-19 | * Made the Screen class use the new Surface class. | Denis Kasak | |
* Added Screen::drawRect() method. * Added support for updating dirty rectangles. svn-id: r41657 | |||
2009-06-19 | Added support for the new Surface class to Font (transparency, marking dirty ↵ | Denis Kasak | |
rectangles). svn-id: r41656 | |||
2009-06-19 | Made the Surface class compile. | Denis Kasak | |
svn-id: r41655 | |||
2009-06-19 | Added Sprite::draw() method for drawing sprites to a Surface. | Denis Kasak | |
svn-id: r41654 | |||
2009-06-18 | Added Surface class. | Denis Kasak | |
svn-id: r41653 | |||
2009-06-18 | Turned constants into enum in order to remove need of prototypes. | Eugene Sandulenko | |
svn-id: r41623 | |||
2009-06-18 | Changed _screenWidth and _screenHeight from member variables to constants ↵ | Denis Kasak | |
because the screen size doesn't change. svn-id: r41620 | |||
2009-06-17 | Added kNumColours constant and replaced magic numbers with it. | Denis Kasak | |
svn-id: r41617 | |||
2009-06-17 | Added default parameter to Screen::setPaletteEmpty() so it clears all ↵ | Denis Kasak | |
colours by default. svn-id: r41614 | |||
2009-06-17 | Changed the _font DraciEngine member from a Font instance to a pointer to an ↵ | Denis Kasak | |
instance. This way the default constructor is invoked in DraciEngine::init() and can properly initialize the fonts because the game data paths are set. svn-id: r41612 | |||
2009-06-17 | Fixed typo. | Denis Kasak | |
svn-id: r41608 | |||
2009-06-17 | Added prefices to safeguard defines in order to minimize risk of name clash. | Eugene Sandulenko | |
svn-id: r41605 | |||
2009-06-17 | Began work on the Screen class. Modified the demo animation to use the it. | Denis Kasak | |
svn-id: r41604 | |||
2009-06-17 | Added include guards. | Denis Kasak | |
svn-id: r41600 | |||
2009-06-15 | Changing font colour constants to an enum. | Denis Kasak | |
svn-id: r41553 | |||
2009-06-15 | Submitting changes to DraciEngine::go() mentioned in the last commit but ↵ | Denis Kasak | |
omitted by accident. Removed superfluous BArchive::closeArchive() calls. svn-id: r41552 | |||
2009-06-15 | Added BArchive::isOpen() method. Modified DraciEngine::go() to use it. ↵ | Denis Kasak | |
Updated BArchive docs. svn-id: r41550 | |||
2009-06-15 | Fixed a memory leak in BArchive::openArchive(). A buffer wasn't being freed. | Denis Kasak | |
svn-id: r41535 | |||
2009-06-15 | Close a file after we're done using it. | Denis Kasak | |
svn-id: r41534 | |||
2009-06-15 | Added support for DFW format archives. Rewrote some BArchive methods to be ↵ | Denis Kasak | |
able to seamlessly handle both BAR and DFW archives. Modified the BAFile struct to support both types of files. Tested it by enabling the mouse in the event loop (the cursor was stored in a DFW file). Added and rewrote docs to reflect the changes. svn-id: r41533 | |||
2009-06-15 | Added const to reference parameters of Font::drawString() and ↵ | Denis Kasak | |
Font::getStringWidth(). svn-id: r41530 | |||
2009-06-15 | Converted default font colours from static members of Font to constants. ↵ | Denis Kasak | |
Moved the initializer list of the Font constructor to the constructor body (for readability). svn-id: r41529 | |||
2009-06-14 | Removed superfluous return from the Sprite constructor. | Denis Kasak | |
svn-id: r41525 | |||
2009-06-14 | Added a Font _font variable to the engine instance. Fixed font colour ↵ | Denis Kasak | |
handling by replacing the appropriate colours before drawing. Added Font::setColour() method for changing the current font colour. Added include guards to draci/font.h. Moved kFontBig and kFontSmall constants to draci/font.cpp to prevent redefinition errors. svn-id: r41524 | |||
2009-06-14 | Renamed DraciFont class to Font to be more consistent with the rest of the ↵ | Denis Kasak | |
classes and other engines. svn-id: r41523 | |||
2009-06-14 | Changed DraciFont API to accept const Strings when loading fonts and added ↵ | Denis Kasak | |
constants for font types. svn-id: r41522 | |||
2009-06-14 | Replaced a call to getEventManager() with Engine::_eventMan. | Denis Kasak | |
svn-id: r41518 | |||
2009-06-14 | Whitespce fixes | Eugene Sandulenko | |
svn-id: r41514 | |||
2009-06-14 | Replace hackish getch() with proper event loop at end of the demo. | Eugene Sandulenko | |
svn-id: r41513 | |||
2009-06-14 | Designate hack according to our conventions | Eugene Sandulenko | |
svn-id: r41512 | |||
2009-06-14 | Reworded DraciFont docs (with regards to mentioning ASCII). | Denis Kasak | |
svn-id: r41511 | |||
2009-06-14 | Removed superfluous checks for NULL in DraciFont::freeFont(). | Denis Kasak | |
svn-id: r41510 | |||
2009-06-14 | Added a Sprite class for handling sprites in the Draci format transparently. ↵ | Denis Kasak | |
Modified the test animation to use it. svn-id: r41509 | |||
2009-06-12 | Fixed evaluation of GPL mathematical expressions. The evaluator now checks ↵ | Denis Kasak | |
that, at the end of the evaluation, the stack only contains one value (i.e. the result of the expression). svn-id: r41477 | |||
2009-06-12 | Replaced a magic number with a proper constant. | Denis Kasak | |
svn-id: r41476 | |||
2009-06-12 | Made DraciFont::drawString() return early if the string is too long to fit ↵ | Denis Kasak | |
on the screen. svn-id: r41475 | |||
2009-06-12 | Made DraciFont::drawString() take a String reference instead of a copy. | Denis Kasak | |
svn-id: r41472 | |||
2009-06-12 | Removed overflow/underflow checks from DraciFont::drawChar(). Instead, we ↵ | Denis Kasak | |
now calculate the number of pixels that can be drawn without overflowing beforehand. Also added asserts to catch any negative value passed for the coordinates. svn-id: r41471 | |||
2009-06-12 | Made the DraciFont::freeFont() method safe to call in any circumstance by ↵ | Denis Kasak | |
making it check for NULL pointers itself to prevent double free / corruption. This also fixes a potential bug in the destructor. svn-id: r41469 | |||
2009-06-12 | Properly documented everything (including the new DraciFont class). ↵ | Denis Kasak | |
Reshuffled some old comments. svn-id: r41467 | |||
2009-06-11 | Implemented font handling via the DraciFont class. Reprogrammed the test ↵ | Denis Kasak | |
animation to use the original game fonts. Removed the old drawString() hack. svn-id: r41454 |