1
General discussions / SFML 1.6 released soon
« on: March 09, 2010, 04:00:47 am »
sfml 1.6.
when i can download from main page?
i dont want from svn.
when i can download from main page?
i dont want from svn.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
sfStream *http = CreateStreamFromURI("http://mypage.com/mytestfile.zip");
sfStream *ftp =
CreateStreamFromURI("ftp://mypage.com/mytestfile.zip");
sfStream *zip =
CreateStreamFromURI("zip://C:/example.zip#infile.bmp");
zip->Seek(10,...); // offset change
http->Seek(100,...); // offset change if HTTP/1.0 by Range:
bytes=100- etc.
ftp->Seek(100,...); // offset change....
int howmuch = ftp->Read(100,mybuffer); //
ftp->SetAsync(true); // non-blocking reading/writing
class MyOwnStream : public IStreamCreator {
public:
MyOwnStream();
virtual ~MyOwnStream();
public:
char* GetURIPrefix(); // get "ftp://" or something.
sf::Stream *CreateStream(); // create interface (use by CreateStreamForURI);....
};
RegisterCustomStream("myzip://",mMyOwnStreamPointer);