mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-22 14:16:50 +00:00
44 lines
1003 B
C
44 lines
1003 B
C
|
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||
|
//
|
||
|
// Purpose:
|
||
|
//
|
||
|
//=============================================================================
|
||
|
|
||
|
#ifndef MINIVIEWPORT_H
|
||
|
#define MINIVIEWPORT_H
|
||
|
#ifdef _WIN32
|
||
|
#pragma once
|
||
|
#endif
|
||
|
|
||
|
#include "vgui_controls/ToolWindow.h"
|
||
|
|
||
|
class CMiniViewportPropertyPage;
|
||
|
|
||
|
class CMiniViewport : public vgui::ToolWindow
|
||
|
{
|
||
|
DECLARE_CLASS_SIMPLE( CMiniViewport, vgui::ToolWindow );
|
||
|
public:
|
||
|
CMiniViewport( vgui::Panel *parent,
|
||
|
bool contextLabel,
|
||
|
vgui::IToolWindowFactory *factory = 0,
|
||
|
vgui::Panel *page = NULL,
|
||
|
char const *title = NULL,
|
||
|
bool contextMenu = false );
|
||
|
|
||
|
void GetViewport( bool& enabled, int& x, int& y, int& width, int& height );
|
||
|
|
||
|
void GetEngineBounds( int& x, int& y, int& w, int& h );
|
||
|
|
||
|
void RenderFrameBegin();
|
||
|
|
||
|
// Sets text to draw over the window
|
||
|
void SetOverlayText( const char *pText );
|
||
|
|
||
|
void ReleaseLayoffTexture();
|
||
|
|
||
|
private:
|
||
|
vgui::DHANDLE< CMiniViewportPropertyPage > m_hPage;
|
||
|
};
|
||
|
|
||
|
#endif // MINIVIEWPORT_H
|