ezEngine  Milestone 9
ezTexConv2 Class Reference
Inheritance diagram for ezTexConv2:

Classes

struct  KeyEnumValuePair
 

Public Types

typedef ezApplication SUPER
 
- Public Types inherited from ezApplication
enum  ApplicationExecution { Continue, Quit }
 Defines the possible return values for the ezApplication::Run() function. More...
 

Public Member Functions

virtual ApplicationExecution Run () override
 Main run function which is called periodically. This function must be overridden. More...
 
virtual void BeforeCoreSystemsStartup () override
 This function is called before any kind of engine initialization is done. More...
 
virtual void AfterCoreSystemsStartup () override
 This function is called after basic engine initialization has been done. More...
 
virtual void BeforeCoreSystemsShutdown () override
 This function is called after the application main loop has run for the last time, before engine deinitialization. More...
 
ezResult ParseCommandLine ()
 
ezResult ParseOutputType ()
 
ezResult DetectOutputFormat ()
 
ezResult ParseInputFiles ()
 
ezResult ParseOutputFiles ()
 
ezResult ParseChannelMappings ()
 
ezResult ParseChannelSliceMapping (ezInt32 iSlice)
 
ezResult ParseChannelMappingConfig (ezTexConvChannelMapping &out_Mapping, const char *cfg, ezInt32 iChannelIndex, bool bSingleChannel)
 
ezResult ParseUsage ()
 
ezResult ParseMipmapMode ()
 
ezResult ParseTargetPlatform ()
 
ezResult ParseCompressionMode ()
 
ezResult ParseWrapModes ()
 
ezResult ParseFilterModes ()
 
ezResult ParseResolutionModifiers ()
 
ezResult ParseMiscOptions ()
 
ezResult ParseAssetHeader ()
 
ezResult ParseUIntOption (const char *szOption, ezInt32 iMinValue, ezInt32 iMaxValue, ezUInt32 &uiResult) const
 
ezResult ParseFloatOption (const char *szOption, float fMinValue, float fMaxValue, float &fResult) const
 
ezResult ParseBoolOption (const char *szOption, bool &bResult) const
 
ezResult ParseStringOption (const char *szOption, const ezDynamicArray< KeyEnumValuePair > &allowed, ezInt32 &iResult) const
 
void PrintOptionValues (const char *szOption, const ezDynamicArray< KeyEnumValuePair > &allowed) const
 
void PrintOptionValuesHelp (const char *szOption, const ezDynamicArray< KeyEnumValuePair > &allowed) const
 
bool ParseFile (const char *szOption, ezString &result) const
 
bool IsTexFormat () const
 
ezResult WriteTexFile (ezStreamWriter &stream, const ezImage &image)
 
ezResult WriteOutputFile (const char *szFile, const ezImage &image)
 
- Public Member Functions inherited from ezApplication
 ezApplication (const char *szAppName)
 Constructor.
 
virtual ~ezApplication ()
 Virtual destructor.
 
void SetApplicationName (const char *szAppName)
 Changes the application name.
 
const ezStringGetApplicationName () const
 Returns the application name.
 
virtual void BeforeHighLevelSystemsShutdown ()
 This function is called after the application main loop has run for the last time, before engine deinitialization. More...
 
virtual void AfterHighLevelSystemsShutdown ()
 Called after ezStartup::ShutdownHighLevelSystems() has been executed.
 
virtual void AfterCoreSystemsShutdown ()
 This function is called after ezStartup::ShutdownCoreSystems() has been called. More...
 
virtual void BeforeEnterBackground ()
 This function is called when an application is moved to the background. More...
 
virtual void BeforeEnterForeground ()
 This function is called whenever an application is resumed from background mode. More...
 
void SetReturnCode (ezInt32 iReturnCode)
 Sets the value that the application will return to the OS. You can call this function at any point during execution to update the return value of the application. Default is zero.
 
ezInt32 GetReturnCode () const
 Returns the currently set value that the application will return to the OS.
 
virtual const char * TranslateReturnCode () const
 If the return code is not zero, this function might be called to get a string to print the error code in human readable form.
 
void SetCommandLineArguments (ezUInt32 uiArgumentCount, const char **ppArguments)
 Will set the command line arguments that were passed to the app by the OS. This is automatically called by EZ_APPLICATION_ENTRY_POINT() and EZ_CONSOLEAPP_ENTRY_POINT().
 
ezUInt32 GetArgumentCount () const
 Returns the number of command lien arguments that were passed to the application. More...
 
const char * GetArgument (ezUInt32 uiArgument) const
 Returns one of the command line arguments that was passed to the application.
 
const char ** GetArgumentsArray () const
 Returns the complete array of command line arguments that were passed to the application.
 
void EnableMemoryLeakReporting (bool bEnable)
 
bool IsMemoryLeakReportingEnabled () const
 

Additional Inherited Members

- Static Public Member Functions inherited from ezApplication
static ezApplicationGetApplicationInstance ()
 Returns the one instance of ezApplication that is available.
 

Member Function Documentation

◆ AfterCoreSystemsStartup()

void ezTexConv2::AfterCoreSystemsStartup ( )
overridevirtual

This function is called after basic engine initialization has been done.

ezApplication will automatically call ezStartup::StartupCoreSystems() to initialize the application. This function can be overridden to do additional application specific initialization. To startup entire subsystems, you should however use the features provided by ezStartup and ezSubSystem.

Reimplemented from ezApplication.

◆ BeforeCoreSystemsShutdown()

void ezTexConv2::BeforeCoreSystemsShutdown ( )
overridevirtual

This function is called after the application main loop has run for the last time, before engine deinitialization.

Override this function to do application specific deinitialization that still requires a running engine. After this function returns ezStartup::ShutdownCoreSystems() is called and thus everything, including allocators, is shut down. To shut down entire subsystems, you should, however, use the features provided by ezStartup and ezSubSystem.

Reimplemented from ezApplication.

◆ BeforeCoreSystemsStartup()

void ezTexConv2::BeforeCoreSystemsStartup ( )
overridevirtual

This function is called before any kind of engine initialization is done.

Override this function to be able to configure subsystems, before they are initialized. After this function returns, ezStartup::StartupCoreSystems() is automatically called. If you need to set up custom allocators, this is the place to do this.

Reimplemented from ezApplication.

◆ Run()

ezApplication::ApplicationExecution ezTexConv2::Run ( )
overridevirtual

Main run function which is called periodically. This function must be overridden.

Return ApplicationExecution::Quit when the application should quit. You may set a return code via SetReturnCode() beforehand.

Implements ezApplication.


The documentation for this class was generated from the following files: