Click here to Skip to main content
15,895,787 members
Articles / Desktop Programming / WPF

OpenGL for Both Native and .NET Environment

Rate me:
Please Sign up or sign in to vote.
4.92/5 (12 votes)
7 Jan 2013CPOL3 min read 36.3K   2.3K   51  
This article shows how you can bring OpenGL to both native and .NET environment.
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by OpenGraphWin32Client.rc
//
#define IDC_MYICON                      2
#define IDD_OPENGRAPHWIN32CLIENT_DIALOG 102
#define IDS_APP_TITLE                   103
#define IDD_ABOUTBOX                    103
#define IDM_ABOUT                       104
#define IDM_EXIT                        105
#define IDI_OPENGRAPHWIN32CLIENT        107
#define IDI_SMALL                       108
#define IDC_OPENGRAPHWIN32CLIENT        109
#define IDR_MAINFRAME                   128
#define ID_VIEW_SELECTALL               32771
#define ID_VIEW_UNSELECTALL             32772
#define ID_VIEW_REVERSESELECT           32773
#define ID_VIEW_SHOWSELECTED            32774
#define ID_VIEW_VIEWFRONT               32775
#define ID_VIEW_VIEWISOMETRIC           32776
#define ID_VIEW_RESETVIEW               32777
#define ID_VIEW_PROJECTPOINT            32778
#define ID_DRAW_DRAWNODES               32779
#define ID_DRAW_DRAWLINES               32780
#define ID_DRAW_DRAWTRIANGLES           32781
#define ID_DRAW_DRAWQUADS               32782
#define ID_DRAW_DRAWWINDOWNODES         32783
#define ID_DRAW_DRAWWINDOWLINES         32784
#define ID_DRAW_DRAWWINDOWTRIANGLES     32785
#define ID_DRAW_DRAWWINDOWQUADS         32786
#define ID_DRAW_CLEAR                   32787
#define ID_DRAW_SAVEIMAGE               32788
#define ID_MODE_DEFAULT                 32789
#define ID_MODE_TRACK                   32790
#define ID_MODE_SELECT                  32791
#define ID_MODE_PAN                     32792
#define ID_MODE_ROTATE                  32793
#define ID_MODE_WINDOWZOOM              32794
#define ID_MODE_PIXELPAN                32795
#define ID_VIEW_SELECT_ALL              32796
#define ID_VIEW_UNSELECT_ALL            32797
#define ID_VIEW_REVERSE_SELECT          32798
#define ID_VIEW_SHOW_SELECTED           32799
#define ID_VIEW_FRONT                   32800
#define ID_VIEW_ISOMETRIC               32801
#define ID_VIEW_RESET                   32802
#define ID_VIEW_PROJECT                 32803
#define ID_DRAW_NODES                   32804
#define ID_DRAW_LINES                   32805
#define ID_DRAW_TRIANGLES               32806
#define ID_DRAW_QUADS                   32807
#define ID_DRAW_NODES_W                 32808
#define ID_DRAW_LINES_W                 32809
#define ID_DRAW_TRIANGLES_W             32810
#define ID_DRAW_QUADS_W                 32811
#define ID_DRAW_SAVE_IMAGE              32812
#define IDC_STATIC                      -1

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NO_MFC                     1
#define _APS_NEXT_RESOURCE_VALUE        129
#define _APS_NEXT_COMMAND_VALUE         32813
#define _APS_NEXT_CONTROL_VALUE         1000
#define _APS_NEXT_SYMED_VALUE           110
#endif
#endif

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
President Computations & Graphics, Inc.
United States United States
Junlin Xu is the founder of Computations & Graphics, Inc. (http://www.cg-inc.com). He is the author of Real3D finite element package, SolverBlaze finite element SDK, OpenGraph Library (OpenGL-based visualization and charting SDK for native and .NET environment), and double128 SDK (quad precision floating point math for C++ and .NET).

Junlin has 20+ years software development experiences in various industries. He has skills in Windows desktop and web application development using C++, C++/CLI, C#, Qt, MFC, STL, OpenGL, GLSL, COM/COM+, WinForms, MS SQL, MySQL, ASP.NET and .NET Core, CSS, jQuery and jQuery UI, Autodesk Revit API, Inno Setup. He is also an expert in mathematical, CAD and algorithmic software development.

Comments and Discussions