Click here to Skip to main content
15,886,199 members
Articles / Multimedia / OpenGL

OAG Library (OpenGL) Part 2.3 - Drawing 2D Textures Using the Mouse and Programatically

Rate me:
Please Sign up or sign in to vote.
4.29/5 (6 votes)
22 Oct 2010CPOL3 min read 34.1K   1.3K   17  
This tutorial shows library code for 2D Textures and how to draw them programatically using the mouse in an MFC application.
��<html>

<head>

<META HTTP-EQUIV="Content-Type" content="text/html; charset=utf-16">

</head>

<body>

<pre>

<table width=100% bgcolor=#CFCFE5><tr> <td> <font face=arial size=+3>

Build Log

</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>

<h3>Build started: Project: LibXML, Configuration: Release|Win32</h3>

</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>

Command Lines

</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>Creating temporary file "c:\Libs_Projects\WinAPIs\LibXML\bin\Release Win32\LibXML\Intermediate\RSP00000110804928.rsp" with contents

[

/Ox /Ot /I &quot;include&quot; /D &quot;WIN32&quot; /D &quot;NDEBUG&quot; /D &quot;LIBXML_STATIC&quot; /D &quot;_VC80_UPGRADE=0x0710&quot; /D &quot;_MBCS&quot; /FD /EHsc /MT /GS- /Fo&quot;c:\Libs_Projects\WinAPIs\LibXML\/bin/Release Win32/LibXML/Intermediate\\&quot; /Fd&quot;c:\Libs_Projects\WinAPIs\LibXML\/bin/Release Win32/LibXML/Intermediate\vc90.pdb&quot; /W3 /c /Wp64 /Zi /TC .\c14n.c


.\xmlwriter.c


.\xmlunicode.c


.\xmlstring.c


.\xmlsave.c


.\xmlregexp.c


.\xmlreader.c


.\xmlmodule.c


.\xmlmemory.c


.\xmlIO.c


.\xmlcatalog.c


.\xlink.c


.\xinclude.c


.\valid.c


.\uri.c


.\tree.c


.\threads.c


.\SAX2.c


.\SAX.c


.\relaxng.c


.\pattern.c


.\parserInternals.c


.\parser.c


.\nanohttp.c


.\nanoftp.c


.\list.c


.\legacy.c


.\HTMLtree.c


.\HTMLparser.c


.\hash.c


.\globals.c


.\error.c


.\entities.c


.\encoding.c


.\DOCBparser.c


.\dict.c


.\debugXML.c


.\chvalid.c


.\catalog.c

]

Creating command line "cl.exe @"c:\Libs_Projects\WinAPIs\LibXML\bin\Release Win32\LibXML\Intermediate\RSP00000110804928.rsp" /nologo /errorReport:prompt"

Creating temporary file "c:\Libs_Projects\WinAPIs\LibXML\bin\Release Win32\LibXML\Intermediate\RSP00000210804928.rsp" with contents

[

/OUT:&quot;c:\Libs_Projects\WinAPIs\LibXML\/bin/Release Win32/LibXML/LibXML.lib&quot; /MACHINE:X86


&quot;.\bin\Release Win32\LibXML\Intermediate\c14n.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\catalog.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\chvalid.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\debugXML.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\dict.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\DOCBparser.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\encoding.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\entities.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\error.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\globals.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\hash.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\HTMLparser.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\HTMLtree.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\legacy.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\list.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\nanoftp.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\nanohttp.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\parser.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\parserInternals.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\pattern.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\relaxng.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\SAX.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\SAX2.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\threads.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\tree.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\uri.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\valid.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\xinclude.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\xlink.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\xmlcatalog.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\xmlIO.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\xmlmemory.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\xmlmodule.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\xmlreader.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\xmlregexp.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\xmlsave.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\xmlstring.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\xmlunicode.obj&quot;


&quot;.\bin\Release Win32\LibXML\Intermediate\xmlwriter.obj&quot;

]

Creating command line "lib.exe @"c:\Libs_Projects\WinAPIs\LibXML\bin\Release Win32\LibXML\Intermediate\RSP00000210804928.rsp" /NOLOGO"

</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>

Output Window

</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>Compiling...

cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release

c14n.c

xmlwriter.c

xmlunicode.c

xmlstring.c

xmlsave.c

xmlregexp.c

xmlreader.c

xmlmodule.c

xmlmemory.c

xmlIO.c

xmlcatalog.c

xlink.c

xinclude.c

valid.c

uri.c

tree.c

threads.c

SAX2.c

SAX.c

relaxng.c

Generating Code...

Compiling...

pattern.c

parserInternals.c

parser.c

nanohttp.c

nanoftp.c

list.c

legacy.c

HTMLtree.c

HTMLparser.c

hash.c

globals.c

error.c

entities.c

encoding.c

DOCBparser.c

dict.c

debugXML.c

chvalid.c

catalog.c

Generating Code...

Creating library...

</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>

Results

</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>Build log was saved at "file://c:\Libs_Projects\WinAPIs\LibXML\bin\Release Win32\LibXML\Intermediate\BuildLog.htm"

LibXML - 0 error(s), 1 warning(s)

</pre></table><table   width=100% height=20 bgcolor=#CFCFE5><tr><td><font face=arial size=+2>

</font></table></body></html>

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
Software Developer
Brazil Brazil
I live in Matão, a small city in Brazil. I studied as Programmer in a College for Software Development in Database.
After finishing the College I have been working with java, c# and Computer Graphics with searches for OpenGL.

Comments and Discussions