<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">I just looked got home and took a look
      at /pub/pounds/CSC415.  There are TWO versions of the code that
      are out there. <br>
      <br>
      loadTextureRaw.c is the original C version that took several other
      parameter arguments (like width, height, type , wrap, etc).  <br>
      <br>
      there is also the version I asked you to use (loadTextureRAW.cc)
      which requires you to use RBG files that are 256x256 and that
      formats them for GL_TEXTURE_2D.  This was also written in C, but I
      specifically typecast the malloc to an int* so it would compile on
      both C and C++.   Please use this one for now and if you want to
      try playing with other types of files of other sizes you can start
      using other loadTextureRaw command.  I will fix it so it can be
      used for both C and C++ as well.  <br>
      <br>
      <br>
      <br>
      On 02/13/2015 06:43 PM, Kevin L. Long wrote:<br>
    </div>
    <blockquote cite="mid:1423871039701.30845@live.mercer.edu"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none"><!-- p {margin-top:0;margin-bottom:0;} --></style>
      <div class="" role="textbox" useinlinestyle="true" dir="ltr"
        style="outline: none; font-size: 12pt; color: rgb(0, 0, 0);
        font-family: Calibri, Arial, Helvetica, sans-serif;
        background-color: rgb(255, 255, 255);">
        <p>I believe you wrote this in c. Upon investigation, the malloc
          command cannot be casted to int as it appears you have done in
           LoadTextureRAW.c when using C++, unlike c. Just thought I'd
          let you know. I'll see what I can do to figure out how to fix
          that.</p>
        <br>
        <br>
        <div style="color: rgb(33, 33, 33);">
          <hr tabindex="-1" style="display:inline-block; width:98%">
          <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
              color="#000000" face="Calibri, sans-serif"><b>From:</b>
              <a class="moz-txt-link-abbreviated" href="mailto:csc415-bounces@theochem.mercer.edu">csc415-bounces@theochem.mercer.edu</a>
              <a class="moz-txt-link-rfc2396E" href="mailto:csc415-bounces@theochem.mercer.edu">&lt;csc415-bounces@theochem.mercer.edu&gt;</a> on behalf of
              Andrew J. Pounds <a class="moz-txt-link-rfc2396E" href="mailto:pounds@sandbox.mercer.edu">&lt;pounds@sandbox.mercer.edu&gt;</a><br>
              <b>Sent:</b> Friday, February 13, 2015 6:05 PM<br>
              <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:csc415@theochem.mercer.edu">csc415@theochem.mercer.edu</a><br>
              <b>Subject:</b> Re: [CSC 415] LoadTextureRAW</font>
            <div> </div>
          </div>
          <div>
            <div style="font-size:12pt; font-family:Calibri,sans-serif">
              <div>That should have said loadTextureRAW code...   Sorry
                if my last email caused any confusion.</div>
              <div><br>
              </div>
              <div>Sent from my HTC One on the Verizon Wireless 4G LTE
                network</div>
              <br>
              <div id="htc_header">----- Reply message -----<br>
                From: "Andrew J. Pounds"
                <a class="moz-txt-link-rfc2396E" href="mailto:pounds@sandbox.mercer.edu">&lt;pounds@sandbox.mercer.edu&gt;</a><br>
                To: <a class="moz-txt-link-rfc2396E" href="mailto:pounds@theochem.mercer.edu">"pounds@theochem.mercer.edu"</a>
                <a class="moz-txt-link-rfc2396E" href="mailto:pounds@theochem.mercer.edu">&lt;pounds@theochem.mercer.edu&gt;</a><br>
                Subject: [CSC 415] LoadTextureRAW<br>
                Date: Fri, Feb 13, 2015 2:22 PM</div>
            </div>
            <br>
            <div style="font-size:12pt; font-family:Calibri,sans-serif">
              <div>The loadPendulum code is in /pub/pounds/CSC415 on
                cobre</div>
              <div><br>
              </div>
              <div>Sent from my HTC One on the Verizon Wireless 4G LTE
                network</div>
              <br>
              <div id="htc_header">----- Reply message -----<br>
                From: "Kevin L. Long"
                <a class="moz-txt-link-rfc2396E" href="mailto:Kevin.L.Long@live.mercer.edu">&lt;Kevin.L.Long@live.mercer.edu&gt;</a><br>
                To: <a class="moz-txt-link-rfc2396E" href="mailto:pounds@theochem.mercer.edu">"pounds@theochem.mercer.edu"</a>
                <a class="moz-txt-link-rfc2396E" href="mailto:pounds@theochem.mercer.edu">&lt;pounds@theochem.mercer.edu&gt;</a><br>
                Subject: LoadTextureRAW<br>
                Date: Fri, Feb 13, 2015 1:48 PM</div>
            </div>
            <br>
            <style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
            <div dir="ltr" class="" style="outline:medium none;
              font-size:12pt; color:rgb(0,0,0);
              background-color:rgb(255,255,255);
              font-family:Calibri,Arial,Helvetica,sans-serif;
              display:block">
              <p style="margin-top: 0px; margin-bottom: 0px;">I pit the
                code you gave us into my pendulum, but it seems to have
                no idea what LoadTextureRaw is, is there a library I
                need to import, sorry if I missedsomething in class.</p>
              <p style="margin-top: 0px; margin-bottom: 0px;"><br>
              </p>
              <p style="margin-top: 0px; margin-bottom: 0px;">-Thanks in
                advance</p>
              <p style="margin-top: 0px; margin-bottom: 0px;">Kevin<br>
              </p>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Andrew J. Pounds, Ph.D.  (<a class="moz-txt-link-abbreviated" href="mailto:pounds_aj@mercer.edu">pounds_aj@mercer.edu</a>)
Professor of Chemistry and Computer Science
Mercer University,  Macon, GA 31207   (478) 301-5627
<a class="moz-txt-link-freetext" href="http://faculty.mercer.edu/pounds_aj">http://faculty.mercer.edu/pounds_aj</a>
</pre>
  </body>
</html>