/*****************************************************
Copyright Notice & Disclaimer

Copyright  Ascent, Dark Yoda and Otis
Copyright  some parts by iD Software, Alessandro Falappa and Valve Software.

Permission to use, copy, modify, and distribute this software
and its documentation for any purpose is hereby granted without
fee, provided that the above copyright notice, author statement
appear in all copies of this software and related documentation.

THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF
ANY KIND, EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT
LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A
PARTICULAR PURPOSE.

IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
KIND, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA
OR PROFITS, WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE,
AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION
WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
******************************************************/

Below are the generated texts for this project.
Feel free to modify the code to your needs.

Always remember: Respect the (c) and work of others. 

We hope this sourceocode is helpfull to all of you out there that want to add stuff
to the mdlviewer. We know we have a large audience of users, and because we don't have
enough time to code all options ourselves, you are now able to code these options yourself.

All sourcecode, except the sourcecode programmed by iD software and Valve Software, 
is placed under the GPL, the Gnu Public License. This license prohibits users to 
create closed-source applications with this sourcecode, because you also have to
supply the sourcecode with your application

Sourcecode of the mdlviewer 2.1 is (c) Ascent/Dark Yoda/Otis and Valve Software. All rights reserved.
Sourcecode you add yourself is ofcourse your own property.

Have fun and learn from this project as much as we've learned from it!

Best regards,

	April 1999, 

		Ascent, Dark Yoda and Otis
------------------------------------------------------------------------
IMPORTANT:
General structure of data inside the application:
It's an MDI application so there can be more than one document loaded. Each document
has a viewobject. For every model that you load we create a document and 1 view
to visualize the model. The model is stored INSIDE a mdlview object that is stored
INSIDE the document. 

Actions are founded in the viewobject. In there you get events, and when you want to 
handle them, you go to the document that belongs to that view (or better: the document
whereto this view object belongs to :) ) and get a pointer to the mdlview object.
You call a function of that mdlview object to manipulate, init or get info from the
model that's inside that mdlview object.

So if you add functionality please follow this structure: add the actual worker routines
to studio_utils or studio_renderer (if they have something to do with the model ofcourse :) )
and declare them public. Now from the mdlview object you can call these worker functions
to do stuff for you. Create new public functions in mdlview to make it possible to call the
worker routines from the MCC or the view object.

This is a good way to keep the code clean...
------------------------------------------------------------------------

========================================================================
       MICROSOFT FOUNDATION CLASS LIBRARY : mdlv2
========================================================================

AppWizard has created this mdlv2 application for you.  This application
not only demonstrates the basics of using the Microsoft Foundation classes
but is also a starting point for writing your application.

This file contains a summary of what you will find in each of the files that
make up your mdlv2 application.

mdlv2.h
    This is the main header file for the application.  It includes other
    project specific headers (including Resource.h) and declares the
    CMdlv2App application class.

mdlv2.cpp
    This is the main application source file that contains the application
    class CMdlv2App.

mdlv2.rc
    This is a listing of all of the Microsoft Windows resources that the
    program uses.  It includes the icons, bitmaps, and cursors that are stored
    in the RES subdirectory.  This file can be directly edited in Microsoft
	Developer Studio.

res\mdlv2.ico
    This is an icon file, which is used as the application's icon.  This
    icon is included by the main resource file mdlv2.rc.

res\mdlv2.rc2
    This file contains resources that are not edited by Microsoft 
	Developer Studio.  You should place all resources not
	editable by the resource editor in this file.

mdlv2.clw
    This file contains information used by ClassWizard to edit existing
    classes or add new classes.  ClassWizard also uses this file to store
    information needed to create and edit message maps and dialog data
    maps and to create prototype member functions.

/////////////////////////////////////////////////////////////////////////////

For the main frame window:

MainFrm.h, MainFrm.cpp
    These files contain the frame class CMainFrame, which is derived from
    CMDIFrameWnd and controls all MDI frame features.

res\Toolbar.bmp
    This bitmap file is used to create tiled images for the toolbar.
    The initial toolbar and status bar are constructed in the
    CMainFrame class.  Edit this toolbar bitmap along with the
    array in MainFrm.cpp to add more toolbar buttons.

/////////////////////////////////////////////////////////////////////////////

AppWizard creates one document type and one view:

mdlv2Doc.h, mdlv2Doc.cpp - the document
    These files contain your CMdlv2Doc class.  Edit these files to
    add your special document data and to implement file saving and loading
    (via CMdlv2Doc::Serialize).

mdlv2View.h, mdlv2View.cpp - the view of the document
    These files contain your CMdlv2View class.
    CMdlv2View objects are used to view CMdlv2Doc objects.

res\mdlv2Doc.ico
    This is an icon file, which is used as the icon for MDI child windows
    for the CMdlv2Doc class.  This icon is included by the main
    resource file mdlv2.rc.


/////////////////////////////////////////////////////////////////////////////
Other standard files:

StdAfx.h, StdAfx.cpp
    These files are used to build a precompiled header (PCH) file
    named mdlv2.pch and a precompiled types file named StdAfx.obj.

Resource.h
    This is the standard header file, which defines new resource IDs.
    Microsoft Developer Studio reads and updates this file.

/////////////////////////////////////////////////////////////////////////////
Other notes:

AppWizard uses "TODO:" to indicate parts of the source code you
should add to or customize.

If your application uses MFC in a shared DLL, and your application is 
in a language other than the operating system's current language, you
will need to copy the corresponding localized resources MFC40XXX.DLL
from the Microsoft Visual C++ CD-ROM onto the system or system32 directory,
and rename it to be MFCLOC.DLL.  ("XXX" stands for the language abbreviation.
For example, MFC40DEU.DLL contains resources translated to German.)  If you
don't do this, some of the UI elements of your application will remain in the
language of the operating system.

/////////////////////////////////////////////////////////////////////////////
