[Hdrflow-svn] SF.net SVN: hdrflow: [171] trunk/lib/openlibraries/test/openimagelib/GL/ _2D_scale/_2
Status: Pre-Alpha
Brought to you by:
glslang
|
From: <gl...@us...> - 2007-07-03 23:16:19
|
Revision: 171
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=171&view=rev
Author: glslang
Date: 2007-07-03 16:16:17 -0700 (Tue, 03 Jul 2007)
Log Message:
-----------
+build fixes
Modified Paths:
--------------
trunk/lib/openlibraries/test/openimagelib/GL/_2D_scale/_2D_scale.cpp
Modified: trunk/lib/openlibraries/test/openimagelib/GL/_2D_scale/_2D_scale.cpp
===================================================================
--- trunk/lib/openlibraries/test/openimagelib/GL/_2D_scale/_2D_scale.cpp 2007-07-03 23:09:14 UTC (rev 170)
+++ trunk/lib/openlibraries/test/openimagelib/GL/_2D_scale/_2D_scale.cpp 2007-07-03 23:16:17 UTC (rev 171)
@@ -63,18 +63,18 @@
float tex_w, tex_h;
}
-static GLuint download_texture( const boost::filesystem::path& path )
+static GLuint download_texture( const opl::string& path )
{
typedef opl::discovery<query_traits> oil_discovery;
- oil_discovery plugins( query_traits( opl::to_wstring( path.native_file_string( ).c_str( ) ) ) );
+ oil_discovery plugins( query_traits( opl::to_wstring( path ) ) );
if( plugins.empty( ) ) return 0;
oil_discovery::const_iterator i = plugins.begin( );
- boost::shared_ptr<il::openimagelib_plugin> plug = boost::shared_dynamic_cast<il::openimagelib_plugin>( i->create_plugin( "" ) );
+ il::openimagelib_plugin_ptr plug = boost::shared_dynamic_cast<il::openimagelib_plugin>( i->create_plugin( "" ) );
if( !plug ) return 0;
- il::image_type_ptr image = plug->load( path );
+ il::image_type_ptr image = plug->load( opl::make_stream( path, std::ios::in ) );
if( !image ) return 0;
image = il::conform( image, il::cropped | il::flipped | il::flopped );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|