Click here to Skip to main content
15,886,799 members
Articles / Desktop Programming / MFC

Basic Curves And Surfaces Modeler

Rate me:
Please Sign up or sign in to vote.
4.17/5 (40 votes)
18 Apr 2012CPOL3 min read 246.6K   16.4K   117  
A basic demo of modeling curves and surfaces in OpenGL.
// VKGeom.cpp : Defines the entry point for the DLL application.
//

#include "stdafx.h"
#include "VKGeom.h"

BOOL APIENTRY DllMain( HANDLE hModule, 
                       DWORD  ul_reason_for_call, 
                       LPVOID lpReserved
					 )
{
    switch (ul_reason_for_call)
	{
		case DLL_PROCESS_ATTACH:
		case DLL_THREAD_ATTACH:
		case DLL_THREAD_DETACH:
		case DLL_PROCESS_DETACH:
			break;
    }
    return TRUE;
}

/*

// This is an example of an exported variable
VKGEOM_API int nVKGeom=0;

// This is an example of an exported function.
VKGEOM_API int fnVKGeom(void)
{
	return 42;
}

// This is the constructor of a class that has been exported.
// see VKGeom.h for the class definition
CVKGeom::CVKGeom()
{ 
	return; 
}

*/

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Product Manager Mahindra & Mahindra
India India
Sharjith is a Mechanical Engineer with strong passion for Automobiles, Aircrafts and Software development.

Comments and Discussions