*/
virtual DynamicsFactory* GetDynamicsFactory() = 0;
- * Read from the metrics cache into the global metrics parameter
- *
- * @note fontFamily and fontStyle must have been validated previously.
- * @see ValidateFontFamilyName().
- *
- * @param[in] fontFamily The name of the font family
- * @param[in] fontStyle The name of the font style
- * @param[out] globalMetrics The data store to write into
- * @return \e true if the operation succeeded
- */
- virtual bool ReadGlobalMetricsFromCache( const std::string& fontFamily,
- const std::string& fontStyle,
- Integration::GlobalMetrics& globalMetrics ) = 0;
-
- /**
- *
- * @note fontFamily and fontStyle must have been validated previously.
- * @see ValidateFontFamilyName().
- *
- * Write the global metrics parameter to the metrics cache
- * @param[in] fontFamily The name of the font family
- * @param[in] fontStyle The name of the font style
- * @param[out] globalMetrics The data store to write
- */
- virtual void WriteGlobalMetricsToCache( const std::string& fontFamily,
- const std::string& fontStyle,
- const Integration::GlobalMetrics& globalMetrics ) = 0;
-
- /**
- * Read the metrics from the cache into the supplied vector
- *
- * @note fontFamily and fontStyle must have been validated previously.
- * @see ValidateFontFamilyName().
- *
- * @param[in] fontFamily The name of the font family
- * @param[in] fontStyle The name of the font style
- * @param[out] glyphMetricsContainer The vector of metrics to write
- * @return true if the operation succeeded
- */
- virtual bool ReadMetricsFromCache( const std::string& fontFamily,
- const std::string& fontStyle,
- std::vector<Integration::GlyphMetrics>& glyphMetricsContainer ) = 0;
-
- /**
- * Write the metrics to the cache
- *
- * @note fontFamily and fontStyle must have been validated previously.
- * @see ValidateFontFamilyName().
- *
- * @param[in] fontFamily The name of the font family
- * @param[in] fontStyle The name of the font style
- * @param[in] glyphSet The set of metrics to write
- */
- virtual void WriteMetricsToCache( const std::string& fontFamily,
- const std::string& fontStyle,
- const Integration::GlyphSet& glyphSet ) = 0;
-
- /**
- * Retrieves file names from the given directory.
- *
- * @param[in] directoryName The directory name.
- * @param[out] fileNames The file names in the given directory.
- */
- virtual void GetFileNamesFromDirectory( const std::string& directoryName,
- std::vector<std::string>& fileNames ) = 0;
-
- /**
- * Retrieves the glyph image which represents the character.
- *
- * @param[in] fontFamily The font's family name.
- * @param[in] fontStyle The font's style.
- * @param[in] fontSize The font's size (in points).
- * @param[in] character The given character.
- *
- * @return A bitmap representing the character.
- */
- virtual Integration::BitmapPtr GetGlyphImage( const std::string& fontFamily, const std::string& fontStyle, float fontSize, uint32_t character ) const = 0;
-
- /**
+ /**
+ * Load a shader binary file into a buffer
+ * @param[in] filename The shader binary filename to load
+ * @param[out] buffer A buffer to receive the file.
+ * @result true if the file is loaded.
+ */
+ virtual bool LoadShaderBinFile( const std::string& filename, std::vector< unsigned char >& buffer ) const = 0;
+
}; // class PlatformAbstraction
} // namespace Integration
*/
enum GeometryType
{
- GEOMETRY_TYPE_IMAGE = 0x01, ///< image, with flat color or texture
- GEOMETRY_TYPE_UNTEXTURED_MESH = 0x02,///< Complex meshes, with flat color
- GEOMETRY_TYPE_TEXTURED_MESH = 0x04, ///< Complex meshes, with texture
+ GEOMETRY_TYPE_IMAGE = 0x01, ///< image, with flat color or texture
- GEOMETRY_TYPE_TEXT = 0x02, ///< text, with flat color or texture
- GEOMETRY_TYPE_UNTEXTURED_MESH = 0x04, ///< Complex meshes, with flat color
- GEOMETRY_TYPE_TEXTURED_MESH = 0x08, ///< Complex meshes, with texture
- GEOMETRY_TYPE_LAST = 0x10
++ GEOMETRY_TYPE_UNTEXTURED_MESH = 0x02, ///< Complex meshes, with flat color
++ GEOMETRY_TYPE_TEXTURED_MESH = 0x04, ///< Complex meshes, with texture
+ GEOMETRY_TYPE_LAST = 0x08
};
/**