mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 10:20:26 +01:00
88 lines
2.4 KiB
C++
88 lines
2.4 KiB
C++
/* Copyright (c) 2002-2012 Croteam Ltd. All rights reserved. */
|
|
|
|
// SeriousSkaStudioDoc.h : interface of the CSeriousSkaStudioDoc class
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_SERIOUSSKASTUDIODOC_H__ADB1B81A_7B4C_4335_81F4_E9D1E51B7C68__INCLUDED_)
|
|
#define AFX_SERIOUSSKASTUDIODOC_H__ADB1B81A_7B4C_4335_81F4_E9D1E51B7C68__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include <Engine/Base/Serial.h>
|
|
|
|
class CSeriousSkaStudioDoc : public CDocument
|
|
{
|
|
protected: // create from serialization only
|
|
CSeriousSkaStudioDoc();
|
|
DECLARE_DYNCREATE(CSeriousSkaStudioDoc)
|
|
|
|
// Attributes
|
|
public:
|
|
CModelInstance *m_ModelInstance;
|
|
BOOL m_bModelInstanceChanged;
|
|
|
|
FLOAT m_fSpeedZ;// speed Z
|
|
FLOAT m_fLoopSecends; // how long to loop moving by z
|
|
FLOAT fCustomMeshLodDist;
|
|
FLOAT fCustomSkeletonLodDist;
|
|
BOOL bAutoMiping;
|
|
BOOL bShowGround;
|
|
BOOL bShowLights;
|
|
BOOL bAnimLoop; // will played anims be looping
|
|
BOOL bShowColisionBox;
|
|
BOOL bShowAllFramesBBox;
|
|
|
|
COLOR m_colAmbient; // Ambient color
|
|
COLOR m_colLight; // Light color
|
|
FLOAT3D m_vLightDir;// Light direction
|
|
|
|
CTimerValue m_tvStart; // each view has its own timing so it can be pause
|
|
CTimerValue m_tvPauseStart; // time when pause accured
|
|
CTimerValue m_tvPauseTime; // how much time was this paused
|
|
BOOL m_bViewPaused; // is this view paused
|
|
|
|
// Operations
|
|
public:
|
|
void OnIdle(void);
|
|
void SetTimerForDocument();
|
|
// set flag that this document has changed and need to be saved
|
|
void MarkAsChanged();
|
|
INDEX BeforeDocumentClose();
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CSeriousSkaStudioDoc)
|
|
public:
|
|
virtual BOOL OnNewDocument();
|
|
virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
|
|
virtual void Serialize(CArchive& ar);
|
|
virtual void OnCloseDocument();
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
public:
|
|
virtual ~CSeriousSkaStudioDoc();
|
|
#ifdef _DEBUG
|
|
virtual void AssertValid() const;
|
|
virtual void Dump(CDumpContext& dc) const;
|
|
#endif
|
|
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
protected:
|
|
//{{AFX_MSG(CSeriousSkaStudioDoc)
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_SERIOUSSKASTUDIODOC_H__ADB1B81A_7B4C_4335_81F4_E9D1E51B7C68__INCLUDED_)
|