Home

Resume

Blog

Teikitu


/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
/*  »Project«   Teikitu Gaming System (TgS) (∂)
    »File«      TgS (WIN) Kernel.h
    »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".                                                   */
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
#if !defined(TGS_PLATFORM_KERNEL_H)
#define TGS_PLATFORM_KERNEL_H
#pragma once

#if !defined(TgCOMPILE_PLATFORM_WIN)
#error This file should only be included for windows based platforms
#endif

#if !defined(TgCOMPILE_THREAD)
#error Windows platform requires threading supoprt
#endif

#include "TgS Kernel.h"
#include "TgS KERNEL/TgS (WIN) Kernel - LoadDLL.h"


/* == Kernel ============================================================================================================================================================ */

/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */
/*  Kernel Functions                                                                                                                                                      */
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */

/* System Functions */

TgEXTN TgVOID                               tgKN_Window_FullScreen( TgVOID );
TgEXTN TgVOID                               tgKN_Window_Window( TgVOID );

TgEXTN TgVOID                               tgKN_Set_GUI_Keyboard_Callback( TgVOID( *)(TgMS_HWND, TgUINT32, TgUINTPTR, TgSINTPTR) );
TgEXTN TgVOID                               tgKN_Set_GUI_Mouse_Callback( TgVOID( *)(TgMS_HWND, TgUINT32, TgUINTPTR, TgSINTPTR) );


/* Boot Configuration Accessors (Data Only - No Execution Logic) */

TgEXTN TgVOID                               tgKN_Set_Exe_Title( CPC_TgCHAR );
TgEXTN TgVOID                               tgKN_Set_Class_Name( CPC_TgCHAR ); /* Must be called before Boot and after Init */
TgEXTN TgVOID                               tgKN_Set_WndProc( P_TgVOID ); /* Used to override the WndProc function */

TgEXTN TgVOID                               tgKN_Set_FullScreen( C_TgBOOL );
TgEXTN TgVOID                               tgKN_Set_Window( C_TgBOOL );
TgEXTN TgVOID                               tgKN_Set_Minimized( C_TgBOOL );
TgEXTN TgVOID                               tgKN_Set_Maximized( C_TgBOOL );
TgEXTN TgVOID                               tgKN_Set_Full_Screen_Lock( C_TgBOOL );
TgEXTN TgVOID                               tgKN_Set_Window_Size_Fixed( C_TgBOOL );
TgEXTN TgVOID                               tgKN_Set_Window_Size_Lock( C_TgBOOL );
TgEXTN TgVOID                               tgKN_Set_Mute_In_Background( C_TgBOOL );
TgEXTN TgVOID                               tgKN_Set_Run_In_Background( C_TgBOOL );
TgEXTN TgVOID                               tgKN_Set_Menu( C_TgBOOL );
TgEXTN TgVOID                               tgKN_Set_Clear_Display( C_TgBOOL );
TgEXTN TgVOID                               tgKN_Set_Pause_On_Size( C_TgBOOL );

TgEXTN CPC_TgCHAR                           tgKN_Query_Exe_Title( TgVOID );
TgEXTN CPC_TgCHAR                           tgKN_Query_Class_Name( TgVOID );
TgEXTN P_TgVOID                             tgKN_Query_WndProc( TgVOID );

TgEXTN TgBOOL                               tgKN_Query_FullScreen( TgVOID );
TgEXTN TgBOOL                               tgKN_Query_Window( TgVOID );
TgEXTN TgBOOL                               tgKN_Query_Minimized( TgVOID );
TgEXTN TgBOOL                               tgKN_Query_Maximized( TgVOID );
TgEXTN TgBOOL                               tgKN_Query_Full_Screen_Lock( TgVOID ); /* Can not change to window mode */
TgEXTN TgBOOL                               tgKN_Query_Window_Size_Fixed( TgVOID ); /* Window scales only by full screen resolution */
TgEXTN TgBOOL                               tgKN_Query_Window_Size_Lock( TgVOID ); /* Can not scale window mode */
TgEXTN TgBOOL                               tgKN_Query_Mute_In_Background( TgVOID );
TgEXTN TgBOOL                               tgKN_Query_Run_In_Background( TgVOID );
TgEXTN TgBOOL                               tgKN_Query_Menu( TgVOID );
TgEXTN TgBOOL                               tgKN_Query_Clear_Display( TgVOID );
TgEXTN TgBOOL                               tgKN_Query_Pause_On_Size( TgVOID );


/* Boot and Run Time Configuration Accessors (Data Only - No Execution Logic) */

TgEXTN TgVOID                               tgKN_Set_Window_PosX( C_TgSINT32 );
TgEXTN TgVOID                               tgKN_Set_Window_PosY( C_TgSINT32 );
TgEXTN TgVOID                               tgKN_Set_Window_Width( C_TgSINT32 );
TgEXTN TgVOID                               tgKN_Set_Window_Height( C_TgSINT32 );
TgEXTN TgVOID                               tgKN_Set_Display_Width( C_TgSINT32 );
TgEXTN TgVOID                               tgKN_Set_Display_Height( C_TgSINT32 );
TgEXTN TgVOID                               tgKN_Set_Window_Style( C_TgUINT32 );

TgEXTN TgSINT32                             tgKN_Query_Window_PosX( TgVOID );
TgEXTN TgSINT32                             tgKN_Query_Window_PosY( TgVOID );
TgEXTN TgSINT32                             tgKN_Query_Window_Width( TgVOID );
TgEXTN TgSINT32                             tgKN_Query_Window_Height( TgVOID );
TgEXTN TgSINT32                             tgKN_Query_Display_Width( TgVOID );
TgEXTN TgSINT32                             tgKN_Query_Display_Height( TgVOID );
TgEXTN TgUINT32                             tgKN_Query_Window_Style( TgVOID );


/* ====================================================================================================================================================================== */
#endif