Changeset 197

Show
Ignore:
Timestamp:
10/23/06 14:19:46 (2 years ago)
Author:
aldacron
Message:

* removed DerelictGLFW
* removed DerelictGLFW documentation
* removed all GLFW references from the docs, the only exception being credit.html
* the selective symbol loading example in selective.html now uses SDL's cpuinfo functions

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/docs/derelictify.html

    r195 r197  
    5454maintain. 
    5555</p> 
    56 <div class="note">Currently, DerelictGLFW declares all types, macros and functions 
    57 in a single module. This will be changing in the near future, so do not do this 
    58 with your own packages. You will also notice that DerelictSDLImage, DerelictSDLMixer, 
    59 DerelictSDLNet, and DerelictSDLttf all use the single module approach. These 
    60 projects are considered extensions of DerelictSDL. If you were to copy each of 
    61 them to the DerelictSDL package tree, they would match the existing SDL modules.</div> 
    6256 
    6357<h4>Macros</h4> 
  • trunk/docs/index_a.html

    r195 r197  
    2020<li><a href="http://www.opengl.org/">OpenGL</a></li> 
    2121<li><a href="http://rush3d.com/reference/opengl-bluebook-1.0/ch06.html">OpenGL Utility Library (GLU)</a></li> 
    22 <li><a href="http://www.glfw.sourcforge.net/">GLFW</a> 
    2322<li><a href="http://openil.sourceforge.net/">DevIL, ILU, and ILUT</a></li> 
    2423<li><a href="http://www.libsdl.org/">SDL</a></li> 
     
    175174<li><a href="gl.html">DerelictGL</a></li> 
    176175<li><a href="glfw.html">DerelictGLFW</a></li> 
    177 <li><a href="glu.html">DerelictGLU</a></li> 
    178176<li><a href="il.html">DerelictIL</a></li> 
    179177<li><a href="ilu.html">DerelictILU</a></li> 
  • trunk/docs/selective.html

    r195 r197  
    3333and the name of the missing symbol as arguments. If a callback has not been set, 
    3434then a <tt>SharedLibProcLoadException</tt> is thrown instead. Callbacks can be 
    35 set using the function <tt>Derelict_SetMissingProcCallback</tt>. Following is a 
    36 complete example of using this feature to load a version of GLFW that does not 
    37 have the function <tt>glfwSetTime</tt> compiled in (a known issue with a precompiled 
    38 GLFW 2.4.2 shared library that was available on the GLFW homepage). 
     35set using the function <tt>Derelict_SetMissingProcCallback</tt>. 
     36</p> 
     37<p> 
     38Following is a complete example of using this feature. Older versions of SDL 
     39did not include functions to test for CPU capabilities.  
     40<a href="sdl.html">DerelictSDL</a> always attempts to load those functions since 
     41they are present in the latest versions. It is possible to load older versions 
     42of the SDL shared library by ignoring the CPU related functions. This example 
     43demonstrates how to do that. 
    3944</p> 
    4045 
    4146<pre> 
    4247import derelict.util.exception;             // MissingProcCallback interface declared here 
    43 import derelict.glfw.glfw
     48import derelict.sdl.sdl
    4449 
    4550import std.string; 
     
    4752bool myMissingProcCallback(char[] libName, char[] procName) 
    4853{ 
    49     
    50    if(procName.cmp("glfwSetTime") == 0)     // some glfw shared libs are missing glfwSetTime 
    51       return true;                          // continue loading 
    52  
    53    return false;                            // throw an exception for any other missing functions 
     54    // there are 8 functions as part of SDL's CPU interface - test for them all. 
     55    // If the procName matches any one of them, return true to ignore the missing 
     56    // function. 
     57    if( procName.cmp("SDL_HasRDTSC") == 0 || 
     58        procName.cmp("SDL_HasMMX") == 0 || 
     59        procName.cmp("SDL_HasMMXExt") == 0 || 
     60        procName.cmp("SDL_Has3DNow") == 0 || 
     61        procName.cmp("SDL_Has3DNowExt") == 0 || 
     62        procName.cmp("SDL_HasSSE") == 0 || 
     63        procName.cmp("SDL_HasSSE2") == 0 || 
     64        procName.cmp("SDL_HasAltiVec") == 0) 
     65            return true;        // ignore the error and throw no exception 
     66             
     67    // a function other than one of those above failed to load - return false 
     68    // to indicate that an exception should be thrown. 
     69    return false;    
    5470} 
    5571 
     
    5874   // the callback must be set before loading the library(ies) you want the callback to handle 
    5975   Derelict_SetMissingProcCallback(&myMissingProcCallback); 
    60    DerelictGLFW.load(); 
     76   DerelictSDL.load(); 
    6177}  
    6278</pre> 
  • trunk/docs/toc.html

    r195 r197  
    2020<li><a target="view_frame" href="al.html">DerelictAL</a></li> 
    2121<li><a target="view_frame" href="gl.html">DerelictGL</a></li> 
    22 <li><a target="view_frame" href="glfw.html">DerelictGLFW</a></li> 
    2322<li><a target="view_frame" href="glu.html">DerelictGLU</a></li> 
    2423<li><a target="view_frame" href="il.html">DerelictIL</a></li>