ProTech's home page

ProTech-Online.com

OpenGL screen saver visual basic 6 headers.

// cview_basicView.h : interface of the CCview_basicView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_CVIEW_BASICVIEW_H__86C5DC69_9D63_4FC0_9380_5B72D91CCDCC__INCLUDED_)
#define AFX_CVIEW_BASICVIEW_H__86C5DC69_9D63_4FC0_9380_5B72D91CCDCC__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "gl\gl.h"
#include "gl\glu.h"
class CCview_basicView : public CView
{
protected: // create from serialization only
       CCview_basicView();
       DECLARE_DYNCREATE(CCview_basicView)
// Attributes
public:
       CCview_basicDoc* GetDocument();
       CPalette    m_cPalette;
       CPalette    *m_pOldPalette;
       CRect       m_oldRect;
       float       m_fRadius;
       CClientDC   *m_pDC;
       float x,y,z,r,xbounce,ybounce,zbounce,r_radius;
       BOOL rotatex, rotatey, rotatez;
       GLfloat m_xRot, m_yRot, m_zRot;
       HGLRC m_hRC//Rendering Context
       GLuint m_Texture[3];
       GLdouble m_texWrap, m_texFilter, m_texMode;
       HBITMAP hBmp;
       BITMAP BM;
// Operations
public:
       BOOL InitializeOpenGL();
       BOOL SetupPixelFormat(void);
       void DrawScene(void);
       void LoadTexture (int bitmapName, int texName);
       void LoadGLTextures();
       void SetupLighting();
       // ClassWizard generated virtual function overrides
       //{{AFX_VIRTUAL(CCview_basicView)
       public:
       virtual void OnDraw(CDC* pDC);  // overridden to draw this view
       virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
       protected:
       //}}AFX_VIRTUAL
// Implementation
public:
       virtual ~CCview_basicView();
#ifdef _DEBUG
       virtual void AssertValid() const;
       virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
       //{{AFX_MSG(CCview_basicView)
       afx_msg void OnTimer(UINT nIDEvent);
       afx_msg void OnDestroy();
       afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
       afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
       afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
       afx_msg void OnSize(UINT nType, int cx, int cy);
       afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
       afx_msg BOOL OnEraseBkgnd(CDC* pDC);
       //}}AFX_MSG
       DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG  // debug version in cview_basicView.cpp
inline CCview_basicDoc* CCview_basicView::GetDocument()
   { return (CCview_basicDoc*)m_pDocument; }
#endif


/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CVIEW_BASICVIEW_H__86C5DC69_9D63_4FC0_9380_5B72D91CCDCC__INCLUDED_)
// cview_basicDoc.h : interface of the CCview_basicDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_CVIEW_BASICDOC_H__77142542_C619_43A6_87FA_3100DF0AE0E0__INCLUDED_)
#define AFX_CVIEW_BASICDOC_H__77142542_C619_43A6_87FA_3100DF0AE0E0__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CCview_basicDoc : public CDocument
{
protected: // create from serialization only
       CCview_basicDoc();
       DECLARE_DYNCREATE(CCview_basicDoc)
// Attributes
public:
// Operations
public:
// Overrides
       // ClassWizard generated virtual function overrides
       //{{AFX_VIRTUAL(CCview_basicDoc)
       public:
       virtual BOOL OnNewDocument();
       virtual void Serialize(CArchive& ar);
       //}}AFX_VIRTUAL
// Implementation
public:
       virtual ~CCview_basicDoc();
#ifdef _DEBUG
       virtual void AssertValid() const;
       virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
       //{{AFX_MSG(CCview_basicDoc)
              // NOTE - the ClassWizard will add and remove member functions here.
              //    DO NOT EDIT what you see in these blocks of generated code !
       //}}AFX_MSG
       DECLARE_MESSAGE_MAP()
};


/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CVIEW_BASICDOC_H__77142542_C619_43A6_87FA_3100DF0AE0E0__INCLUDED_)
// cview_basicView.h : interface of the CCview_basicView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_CVIEW_BASICVIEW_H__86C5DC69_9D63_4FC0_9380_5B72D91CCDCC__INCLUDED_)
#define AFX_CVIEW_BASICVIEW_H__86C5DC69_9D63_4FC0_9380_5B72D91CCDCC__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "gl\gl.h"
#include "gl\glu.h"
class CCview_basicView : public CView
{
protected: // create from serialization only
       CCview_basicView();
       DECLARE_DYNCREATE(CCview_basicView)
// Attributes
public:
       CCview_basicDoc* GetDocument();
       CPalette    m_cPalette;
       CPalette    *m_pOldPalette;
       CRect       m_oldRect;
       float       m_fRadius;
       CClientDC   *m_pDC;
       float x,y,z,r,xbounce,ybounce,zbounce,r_radius;
       BOOL rotatex, rotatey, rotatez;
       GLfloat m_xRot, m_yRot, m_zRot;
       HGLRC m_hRC//Rendering Context
       GLuint m_Texture[3];
       GLdouble m_texWrap, m_texFilter, m_texMode;
       HBITMAP hBmp;
       BITMAP BM;
// Operations
public:
       BOOL InitializeOpenGL();
       BOOL SetupPixelFormat(void);
       void DrawScene(void);
       void LoadTexture (int bitmapName, int texName);
       void LoadGLTextures();
       void SetupLighting();
       // ClassWizard generated virtual function overrides
       //{{AFX_VIRTUAL(CCview_basicView)
       public:
       virtual void OnDraw(CDC* pDC);  // overridden to draw this view
       virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
       protected:
       //}}AFX_VIRTUAL
// Implementation
public:
       virtual ~CCview_basicView();
#ifdef _DEBUG
       virtual void AssertValid() const;
       virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
       //{{AFX_MSG(CCview_basicView)
       afx_msg void OnTimer(UINT nIDEvent);
       afx_msg void OnDestroy();
       afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
       afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
       afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
       afx_msg void OnSize(UINT nType, int cx, int cy);
       afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
       afx_msg BOOL OnEraseBkgnd(CDC* pDC);
       //}}AFX_MSG
       DECLARE_MESSAGE_MAP()
};


#ifndef _DEBUG  // debug version in cview_basicView.cpp
inline CCview_basicDoc* CCview_basicView::GetDocument()
   { return (CCview_basicDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CVIEW_BASICVIEW_H__86C5DC69_9D63_4FC0_9380_5B72D91CCDCC__INCLUDED_)
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__17F14398_8EA0_4B45_9C26_E01E55ABCDE6__INCLUDED_)
#define AFX_MAINFRM_H__17F14398_8EA0_4B45_9C26_E01E55ABCDE6__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CMainFrame : public CFrameWnd
{
protected: // create from serialization only
       CMainFrame();
       DECLARE_DYNCREATE(CMainFrame)
// Attributes
public:
 CRect m_FullScreenWindowRect;
WINDOWPLACEMENT m_wpPrev;
// Operations
public:
// Overrides
       // ClassWizard generated virtual function overrides
       //{{AFX_VIRTUAL(CMainFrame)
       public:
       virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
       //}}AFX_VIRTUAL
// Implementation
public:
       virtual ~CMainFrame();
#ifdef _DEBUG
       virtual void AssertValid() const;
       virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
       //{{AFX_MSG(CMainFrame)
       afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
       afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
       afx_msg void OnPaint();
       afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
       //}}AFX_MSG
       DECLARE_MESSAGE_MAP()
};


/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINFRM_H__17F14398_8EA0_4B45_9C26_E01E55ABCDE6__INCLUDED_)
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by cview_basic.rc
//
#define IDD_ABOUTBOX                    100
#define IDR_MAINFRAME                   128
#define IDR_CVIEW_TYPE                  129
#define IDB_BITMAP1                     140
#define IDB_TEST                       141
#define IDB_TUG                         143
#define IDB_CAROUSEL                    144
#define IDB_BMS                         145
#define IDS_COMPANYNAME                 57638
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        146
#define _APS_NEXT_COMMAND_VALUE         32772
#define _APS_NEXT_CONTROL_VALUE         1000
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif
// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//
#if !defined(AFX_STDAFX_H__A35ACC6F_DCE9_4AC2_90F8_40DF05575E08__INCLUDED_)
#define AFX_STDAFX_H__A35ACC6F_DCE9_4AC2_90F8_40DF05575E08__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define VC_EXTRALEAN       // Exclude rarely-used stuff from Windows headers
#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
#include <afxdtctl.h>             // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>               // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STDAFX_H__A35ACC6F_DCE9_4AC2_90F8_40DF05575E08__INCLUDED_)



Copyright © 2013 ProTechs-Online.com; All rights reserved.