mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-04-21 06:48:11 -04:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
29 lines
631 B
Modula-2
29 lines
631 B
Modula-2
|
|
#include "toolscene/qtoolscenewidget.h"
|
|
|
|
native class CQToolSceneWidget : QWidget
|
|
{
|
|
static CQToolSceneWidget Create( QWidget pParent ); [new]
|
|
|
|
void SetCreateSettingsButton( bool bCreateSettingsButton );
|
|
void Init();
|
|
|
|
Vector2 GetMousePositionScreen();
|
|
|
|
int GetNativeWidth();
|
|
int GetNativeHeight();
|
|
|
|
void MarkSceneDirty();
|
|
|
|
void StartRenderingLive();
|
|
void StopRenderingLive();
|
|
void RunFrame( float flSimulationRateMultiplier );
|
|
|
|
|
|
inline void SetMouseControl( bool b )
|
|
{
|
|
this->SetMouseControlType( b ? SCENE_MOUSE_CONTROL_ANYWHERE : SCENE_MOUSE_CONTROL_NONE );
|
|
}
|
|
|
|
void SetRenderOverlays( bool bRenderOverlays );
|
|
} |