Category:Interfaces
(Redirected from Category:INTERFACES)
Jump to navigation
Jump to search
Interfaces are C++ classes that other parts of the engine access when your mod is running.
Some interface objects are very important, and are required for game DLLs to function; to use these you inherit from them for implementation, then cast back to the interface class in a global pointer with a predefined name.



Example
static CInput g_Input;
IInput* input = (IInput*)&g_Input;
This creates the IInput* input
and g_Input
objects the engine expects, placing behind them Valve's basic input code from CInput
.
You are free to modify CInput
, or to create your own inherited class and use that instead; just remember that only the members of IInput
will be accessed by the engine.
Subcategories
This category has the following 5 subcategories, out of 5 total.
I
- IScheme (1 P)
- ISchemeManager (1 P)
- ISystem (1 P)
- ITextureRegenerator (2 P)
Pages in category "Interfaces"
The following 26 pages are in this category, out of 26 total.