DriveHQ Start Menu
Cloud Drive Mapping
Folder Sync
Cloud Backup
True Drop Box
FTP/SFTP Hosting
Group Account
DriveHQ Start Menu
Online File Server
My Storage
|
Manage Shares
|
Publishes
|
Drop Boxes
|
Group Account
WebDAV Drive Mapping
Cloud Drive Home
|
WebDAV Guide
|
Drive Mapping Tool
|
Drive Mapping URL
Complete Data Backup
Backup Guide
|
Online Backup Tool
|
Cloud-to-Cloud Backup
FTP, Email & Web Service
FTP Home
|
FTP Hosting FAQ
|
Email Hosting
|
EmailManager
|
Web Hosting
Help & Resources
About
|
Enterprise Service
|
Partnership
|
Comparisons
|
Support
Quick Links
Security and Privacy
Download Software
Service Manual
Use Cases
Group Account
Online Help
Blog
Contact
Cloud Surveillance
Sign Up
Login
Features
Business Features
Online File Server
FTP Hosting
Cloud Drive Mapping
Cloud File Backup
Email Backup & Hosting
Cloud File Sharing
Folder Synchronization
Group Management
True Drop Box
Full-text Search
AD Integration/SSO
Mobile Access
IP Camera & DVR Solution
More...
Personal Features
Personal Cloud Drive
Backup All Devices
Mobile APPs
Personal Web Hosting
Sub-Account (for Kids)
Home/PC/Kids Monitoring
More...
Software
DriveHQ Drive Mapping Tool
DriveHQ FileManager
DriveHQ Online Backup
DriveHQ Mobile Apps
Pricing
Business Plans & Pricing
Personal Plans & Pricing
Price Comparison with Others
Feature Comparison with Others
Install Mobile App
Sign up
Creating account...
Invalid character in username! Only 0-9, a-z, A-Z, _, -, . allowed.
Username is required!
Invalid email address!
E-mail is required!
Password is required!
Password is invalid!
Password and confirmation do not match.
Confirm password is required!
I accept
Membership Agreement
Please read the Membership Agreement and check "I accept"!
Free Quick Sign-up
Sign-up Page
Log in
Signing in...
Username or e-mail address is required!
Password is required!
Keep me logged in
Quick Login
Forgot Password
Up
Upload
Download
Share
Publish
New Folder
New File
Copy
Cut
Delete
Paste
Rate
Upgrade
Rotate
Effect
Edit
Slide
History
/************************************************************************ filename: OgreCEGUITexture.h created: 11/5/2004 author: Paul D Turner purpose: Interface to Texture implemented via Ogre engine *************************************************************************/ /************************************************************************* Crazy Eddie's GUI System (http://www.cegui.org.uk) Copyright (C)2004 - 2005 Paul D Turner (paul@cegui.org.uk) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *************************************************************************/ #ifndef _OgreCEGUITexture_h_ #define _OgreCEGUITexture_h_ #include
#include
#include
#include "OgreCEGUIRenderer.h" // Start of CEGUI namespace section namespace CEGUI { /*! \brief Texture class that is created by OgreCEGUIRenderer objects */ class _OgrePrivate OgreCEGUITexture : public Texture { private: /************************************************************************* Friends (to allow construction and destruction) *************************************************************************/ friend Texture* OgreCEGUIRenderer::createTexture(void); friend Texture* OgreCEGUIRenderer::createTexture(const String& filename, const String& resourceGroup); friend Texture* OgreCEGUIRenderer::createTexture(float size); friend void OgreCEGUIRenderer::destroyTexture(Texture* texture); /************************************************************************* Construction & Destruction (by Renderer object only) *************************************************************************/ OgreCEGUITexture(Renderer* owner); virtual ~OgreCEGUITexture(void); public: /*! \brief Returns the current pixel width of the texture \return ushort value that is the current width of the texture in pixels */ virtual ushort getWidth(void) const {return d_width;} /*! \brief Returns the current pixel height of the texture \return ushort value that is the current height of the texture in pixels */ virtual ushort getHeight(void) const {return d_height;} /*! \brief Loads the specified image file into the texture. The texture is resized as required to hold the image. \param filename The filename of the image file that is to be loaded into the texture \return Nothing. */ virtual void loadFromFile(const String& filename, const String& resourceGroup); /*! \brief Loads (copies) an image in memory into the texture. The texture is resized as required to hold the image. \param buffPtr Pointer to the buffer containing the image data \param buffWidth Width of the buffer (in pixels as specified by \a pixelFormat ) \param buffHeight Height of the buffer (in pixels as specified by \a pixelFormat ) \param pixelFormat PixelFormat value describing the format contained in \a buffPtr \return Nothing. */ virtual void loadFromMemory(const void* buffPtr, uint buffWidth, uint buffHeight, PixelFormat pixelFormat); /*! \brief Return a pointer to the internal Ogre::Texture object \return Pointer to the Ogre::Texture object currently being used by this Texture object */ Ogre::TexturePtr getOgreTexture(void) const {return d_ogre_texture;} /*! \brief set the size of the internal Ogre texture. Previous Ogre texture is lost. \param size pixel size of the new internal texture. This will be rounded up to a power of 2. \return Nothing. */ void setOgreTextureSize(uint size); /*! \brief Set the internal Ogre::TexturePtr object. \param texture Reference to an Ogre::TexturePtr object that is to be used by this Texture object. \return Nothing. */ void setOgreTexture(Ogre::TexturePtr& texture); private: /************************************************************************* Implementation Functions *************************************************************************/ // safely free Ogre::Texture texture (can be called multiple times with no ill effect) void freeOgreTexture(void); // return a Ogre::string that contains a unique name. Ogre::String getUniqueName(void); /************************************************************************* Implementation Data *************************************************************************/ static uint32 d_texturenumber; //!< Counter used to provide unique texture names. Ogre::TexturePtr d_ogre_texture; //!< The 'real' texture. ushort d_width; //!< cached width of the texture ushort d_height; //!< cached height of the texture bool d_isLinked; //!< True if we are linked to a texture we did not actually create. }; } // End of CEGUI namespace section #endif // end of guard _OgreCEGUITexture_h_
OgreCEGUITexture.h
Page URL
File URL
Prev
23/35
Next
Download
( 5 KB )
Note: The DriveHQ service banners will NOT be displayed if the file owner is a paid member.
Comments
Total ratings:
0
Average rating:
Not Rated
Would you like to comment?
Join DriveHQ
for a free account, or
Logon
if you are already a member.