Home

Resume

Blog

Teikitu


/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
/*  »Project«   Teikitu Gaming System (TgS) (∂)
    »File«      TgS Effect - Debug.c
    »Author«    Andrew Aye (EMail: mailto:andrew.aye@gmail.com, Web: http://www.andrewaye.com)
    »Version«   4.51 / »GUID« A9981407-3EC9-42AF-8B6F-8BE6DD919615                                                                                                        */
/*   -------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/*  Copyright: © 2002-2017, Andrew Aye.  All Rights Reserved.
    This software is free for non-commercial use.  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
      following conditions are met:
        Redistribution of source code must retain this copyright notice, this list of conditions and the following disclaimers.
        Redistribution in binary form must reproduce this copyright notice, this list of conditions and the following disclaimers in the documentation and other materials
          provided with the distribution.
    The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.
    The intellectual property rights of the algorithms used reside with Andrew Aye.
    You may not use this software, in whole or in part, in support of any commercial product without the express written consent of the author.
    There is no warranty or other guarantee of fitness of this software for any purpose. It is provided solely "as is".                                                   */
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
/* == Effects =========================================================================================================================================================== */
#if TgS_DEBUG_EFFECT


/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */
/*  Public Functions                                                                                                                                                      */
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */

/* ---- tgFX_Debug__Load_Config ----------------------------------------------------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
TgVOID tgFX_Debug__Load_Config( TgVOID )
{
    g_tiFX_Debug__OSD__Profile_Enable = tgCN_Var_Init_S32(
        TgT("FX On Screen Profile"), TgT("Display in game overlay of FX List"), KTgCN_VAR_CHEAT, 1, 0, KTgSE_MAX_CAMERA );
    g_tiFX_Debug__OSD__Profile_Sort = tgCN_Var_Init_S32(
        TgT("FX On Screen Profile Sort"), TgT("Set the sort category used for FX overlay"), KTgCN_VAR_CHEAT, 1, 0, 4 );

    g_tiFX_Debug__Draw_BA = tgCN_Var_Init_Bool( TgT("FX Draw Effect Bounding Box"), TgT("Draw the BA for FX"), KTgCN_VAR_CHEAT, TgFALSE );
    g_tiFX_Debug__Draw_Emitter = tgCN_Var_Init_Bool(
        TgT("FX Draw Emitter Location"), TgT("Draw Emitter locations, and reference frame"), KTgCN_VAR_CHEAT, TgFALSE );

    g_tiFX_Debug__Disable_Module = tgCN_Var_Init_Bool( TgT("FX Disable Module"), TgT("Disable the module completely"), KTgCN_VAR_CHEAT, TgFALSE );
    g_tiFX_Debug__Disable_Update = tgCN_Var_Init_Bool( TgT("FX Disable Update"), TgT("Freeze FX in their current state"), KTgCN_VAR_CHEAT, TgFALSE );
    g_tiFX_Debug__Disable_Render = tgCN_Var_Init_Bool( TgT("FX Disable Render"), TgT("Stop rendering FX"), KTgCN_VAR_CHEAT, TgFALSE );
    g_tiFX_Debug__Disable_Render_Buffer = tgCN_Var_Init_Bool(
        TgT("FX Disable Render Buffer"), TgT("No longer create the render buffers for rendering"), KTgCN_VAR_CHEAT, TgFALSE );

    g_tiFX_Debug__Disable_Cull_On_Spawn = tgCN_Var_Init_Bool(
        TgT("FX Disable Cull On Spawn"), TgT("No longer create the render buffers for rendering"), KTgCN_VAR_CHEAT, TgFALSE );
    g_tiFX_Debug__Disable_Cull_On_Render = tgCN_Var_Init_Bool(
        TgT("FX Disable Cull On Render"), TgT("No longer create the render buffers for rendering"), KTgCN_VAR_CHEAT, TgFALSE );
}


/* ---- tgFX_Debug__Is_Valid -------------------------------------------------------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
TgBOOL tgFX_Debug__Is_Valid( C_TgFX_CLIENT_INST_ID UNUSED_PARAM tiClient, C_TgFX_DATA_INST_ID UNUSED_PARAM tiData )
{
    return (TgTRUE);
}


/* ---- tgFX_Debug__Client__Reload_Effect ------------------------------------------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
TgRESULT tgFX_Debug__Client__Reload_Effect( C_TgFX_EFFECT_ID UNUSED_PARAM tiEffect, CPC_STg2_Input UNUSED_PARAM psInput, C_TgUINTPTR UNUSED_PARAM uiParam, UNUSED_PARAM TgVOID(*pgnCallback)(C_TgUINTPTR, C_TgFX_EFFECT_ID) )
{
    /* #IMPLEMENT */
    return (KTgE_FAIL);
}


/* ---- tgFX_Debug__Client__Query_FX_Name ------------------------------------------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
CP_TgCHAR tgFX_Debug__Client__Query_FX_Name( C_TgFX_EFFECT_ID tiFile_Effect )
{
    if (TgFALSE == tgFX_EFFECT_ID_Is_Valid( tiFile_Effect ))
        return (nullptr);
    TgERROR_INDEX( tiFile_Effect.m.iI, g_aszFX_Cache__EFfect_Name );
    return (g_aszFX_Cache__EFfect_Name[tiFile_Effect.m.iI]);
}


/*# TgS_DEBUG_EFFECT */
#endif