Home
last modified time | relevance | path

Searched refs:RWops (Results 1 – 25 of 68) sorted by relevance

123

/dports/devel/sdl2pp/libSDL2pp-0.16.1/SDL2pp/
H A DRWops.cc60 RWops* rwops = reinterpret_cast<RWops*>(context->hidden.unknown.data2); in StdCloseFuncWrapper()
104 RWops* rwops = reinterpret_cast<RWops*>(context->hidden.unknown.data2); in CustomCloseFuncWrapper()
130 RWops RWops::FromFP(FILE* file, bool autoclose) { in FromFP()
134 RWops RWops::FromConstMem(const void* mem, int size) { in FromConstMem()
138 RWops RWops::FromMem(void* mem, int size) { in FromMem()
142 RWops RWops::FromFile(const std::string& file, const std::string& mode) { in FromFile()
146 RWops::RWops(SDL_RWops* rwops) { in RWops() function in SDL2pp::RWops
163 RWops::RWops(RWops&& other) noexcept : rwops_(other.rwops_) { in RWops() function in SDL2pp::RWops
168 RWops& RWops::operator=(RWops&& other) noexcept { in operator =()
179 RWops::~RWops() { in ~RWops()
[all …]
H A DRWops.hh156 class SDL2PP_EXPORT RWops { class
188 static RWops FromFP(FILE* file, bool autoclose);
201 static RWops FromConstMem(const void* mem, int size);
214 static RWops FromMem(void* mem, int size);
235 explicit RWops(SDL_RWops* rwops);
243 RWops(RWops&& other) noexcept;
253 RWops& operator=(RWops&& other) noexcept;
261 RWops(const RWops&) = delete;
269 RWops& operator=(const RWops&) = delete;
282 explicit RWops(C&& custom_rwops) { in RWops() function in SDL2pp::RWops
[all …]
H A DMusic.hh33 class RWops;
80 explicit Music(RWops& rwops);
93 Music(RWops& rwops, Mix_MusicType type);
H A DChunk.hh33 class RWops;
78 explicit Chunk(RWops& rwops);
H A DWav.hh32 class RWops;
82 explicit Wav(RWops& rwops);
H A DMusic.cc39 Music::Music(RWops& rwops) { in Music()
44 Music::Music(RWops& rwops, Mix_MusicType type) { in Music()
H A DTexture.hh41 class RWops;
223 Texture(Renderer& renderer, RWops& rwops);
H A DSurface.hh40 class RWops;
223 explicit Surface(RWops& rwops);
H A DFont.hh36 class RWops;
93 Font(RWops& rwops, int ptsize, long index = 0);
/dports/lang/vala/vala-0.48.18/vapi/
H A Dsdl-image.vapi83 public static bool is_cur(SDL.RWops src);
86 public static bool is_ico(SDL.RWops src);
89 public static bool is_bmp(SDL.RWops src);
92 public static bool is_pnm(SDL.RWops src);
95 public static bool is_xpm(SDL.RWops src);
98 public static bool is_xcf(SDL.RWops src);
101 public static bool is_pcx(SDL.RWops src);
104 public static bool is_gif(SDL.RWops src);
107 public static bool is_jpg(SDL.RWops src);
110 public static bool is_tif(SDL.RWops src);
[all …]
/dports/multimedia/librespot/librespot-0.1.3/cargo-crates/sdl2-0.32.2/src/sdl2/
H A Drwops.rs13 pub struct RWops<'a> { struct
18 impl<'a> RWops<'a> { argument
22 RWops { in from_ll()
39 Ok(RWops { in from_file()
57 Ok(RWops { in from_bytes()
71 Ok(_size) => RWops::from_bytes(buffer), in from_read()
90 Ok(RWops { in from_bytes_mut()
119 impl<'a> Drop for RWops<'a> { implementation
128 impl<'a> io::Read for RWops<'a> { implementation
140 impl<'a> io::Write for RWops<'a> { implementation
[all …]
H A Dsurface.rs14 use crate::rwops::RWops;
176 pub fn load_bmp_rw(rwops: &mut RWops) -> Result<Surface<'static>, String> { in load_bmp_rw()
189 let mut file = r#try!(RWops::from_file(path, "rb")); in load_bmp()
326 pub fn save_bmp_rw(&self, rwops: &mut RWops) -> Result<(), String> { in save_bmp_rw()
335 let mut file = r#try!(RWops::from_file(path, "wb")); in save_bmp()
/dports/games/dose-response/dose-response-179c326/cargo-crates/sdl2-0.32.2/src/sdl2/
H A Drwops.rs13 pub struct RWops<'a> { struct
18 impl<'a> RWops<'a> { implementation
22 RWops { in from_ll()
39 Ok(RWops { in from_file()
57 Ok(RWops { in from_bytes()
71 Ok(_size) => RWops::from_bytes(buffer), in from_read()
90 Ok(RWops { in from_bytes_mut()
119 impl<'a> Drop for RWops<'a> { implementation
128 impl<'a> io::Read for RWops<'a> { implementation
140 impl<'a> io::Write for RWops<'a> { implementation
[all …]
H A Dsurface.rs14 use crate::rwops::RWops;
176 pub fn load_bmp_rw(rwops: &mut RWops) -> Result<Surface<'static>, String> { in load_bmp_rw()
189 let mut file = r#try!(RWops::from_file(path, "rb")); in load_bmp()
326 pub fn save_bmp_rw(&self, rwops: &mut RWops) -> Result<(), String> { in save_bmp_rw()
335 let mut file = r#try!(RWops::from_file(path, "wb")); in save_bmp()
/dports/devel/sdl2pp/libSDL2pp-0.16.1/tests/
H A Dtest_rwops.cc20 RWops rw((ContainerRWops<std::vector<char>>(buffer))); in BEGIN_TEST()
124 RWops rw1(std::move(rw)); in BEGIN_TEST()
134 RWops rw((ContainerRWops<const std::vector<char>>(buffer)));
160 RWops rw((ContainerRWops<std::vector<char>>(vec)));
184 RWops rw((StreamRWops<std::ostream>(test)));
208 RWops rw((StreamRWops<std::istream>(test)));
250 RWops rw = RWops::FromFile(TESTDATA_DIR "/test.txt");
270 RWops rw((ContainerRWops<std::vector<char>>(data)));
279 RWops rw1((ContainerRWops<std::vector<char>>(outdata)));
/dports/audio/klystrack/klystrack-1.7.6-make-fix-12-gfe6e746/klystron/src/snd/
H A Dmusic.h332 typedef SDL_RWops RWops; typedef
335 typedef struct RWops struct
337 int (*read)(struct RWops *context, void *ptr, int size, int maxnum); argument
338 int (*close)(struct RWops *context); argument
348 } RWops; argument
361 int mus_load_instrument_RW(Uint8 version, RWops *ctx, MusInstrument *inst, CydWavetableEntry *wavet…
362 int mus_load_instrument_RW2(RWops *ctx, MusInstrument *inst, CydWavetableEntry *wavetable_entries);
367 int mus_load_song_RW(RWops *rw, MusSong *song, CydWavetableEntry *wavetable_entries);
368 int mus_load_fx_RW(RWops *ctx, CydFxSerialized *fx);
H A Dmusic.c103 static int RWclose(struct RWops *context) in RWclose()
128 static RWops * RWFromFP(FILE *f, int close) in RWFromFP()
140 RWops *rw = calloc(sizeof(*rw), 1); in RWFromFP()
1752 RWops *ctx = RWFromFile(path, "rb"); in mus_load_instrument()
2118 int mus_load_fx_RW(RWops *ctx, CydFxSerialized *fx) in mus_load_fx_RW()
2143 RWops *rw = RWFromFP(f, 0); in mus_load_fx_file()
2160 RWops *rw = RWFromFile(path, "rb"); in mus_load_fx()
2515 RWops *ctx = RWFromFile(path, "rb"); in mus_load_song()
2565 RWops *rw = RWFromFP(f, 0); in mus_load_instrument_file()
2582 RWops *rw = RWFromFP(f, 0); in mus_load_instrument_file2()
[all …]
/dports/games/dunelegacy/dunelegacy-0.96.4/include/INIMap/
H A DINIMap.h60 SDL_RWops* RWops = SDL_RWFromConstMem(mapdata.c_str(), mapdata.size()); in mapname() local
61 inifile = std::shared_ptr<INIFile>(new INIFile(RWops)); in mapname()
62 SDL_RWclose(RWops); in mapname()
/dports/multimedia/librespot/librespot-0.1.3/cargo-crates/sdl2-0.32.2/src/sdl2/ttf/
H A Dcontext.rs7 use ::rwops::RWops;
44 pub fn load_font_from_rwops<'ttf,'r>(&'ttf self, rwops: RWops<'r>, point_size: u16) in load_font_from_rwops()
58 pub fn load_font_at_index_from_rwops<'ttf,'r>(&'ttf self, rwops: RWops<'r>, index: u32, in load_font_at_index_from_rwops()
/dports/games/dose-response/dose-response-179c326/cargo-crates/sdl2-0.32.2/src/sdl2/ttf/
H A Dcontext.rs7 use ::rwops::RWops;
44 pub fn load_font_from_rwops<'ttf,'r>(&'ttf self, rwops: RWops<'r>, point_size: u16) in load_font_from_rwops()
58 pub fn load_font_at_index_from_rwops<'ttf,'r>(&'ttf self, rwops: RWops<'r>, index: u32, in load_font_at_index_from_rwops()
/dports/audio/klystrack/klystrack-1.7.6-make-fix-12-gfe6e746/klystron/src/lib/
H A Dksnd.c47 static int RWread(struct RWops *context, void *ptr, int size, int maxnum) in RWread()
58 static int RWclose(struct RWops *context) in RWclose()
69 RWops *ops = calloc(sizeof(*ops), 1); in KSND_LoadSongFromMemory()
75 RWops *ops = SDL_RWFromMem(data, data_size); in KSND_LoadSongFromMemory()
/dports/devel/sdl2pp/libSDL2pp-0.16.1/
H A DCHANGES.md26 * Proper `Size()` handling for custom `RWops`
30 * `Music` RWops constructors based on undocumented SDL_mixer functions
96 * Use correct type flags in `RWops::Size()`, fixing MinGW build (@vladimirgamalian)
124 * Use move, not copy in constructing `RWops` from `CustomRWops`-derived class
165 * `RWops` `(Read|Write)(LE|BE)(16|32|64)` methods
200 * `RWops` support
/dports/multimedia/librespot/librespot-0.1.3/cargo-crates/sdl2-0.32.2/src/sdl2/image/
H A Dmod.rs28 use rwops::RWops;
76 fn save_rw(&self, dst: &mut RWops) -> Result<(), String>; in save_rw()
120 fn save_rw(&self, dst: &mut RWops) -> Result<(), String> { in save_rw()
239 impl<'a> ImageRWops for RWops<'a> { implementation
/dports/games/dose-response/dose-response-179c326/cargo-crates/sdl2-0.32.2/src/sdl2/image/
H A Dmod.rs28 use rwops::RWops;
76 fn save_rw(&self, dst: &mut RWops) -> Result<(), String>; in save_rw()
120 fn save_rw(&self, dst: &mut RWops) -> Result<(), String> { in save_rw()
239 impl<'a> ImageRWops for RWops<'a> { implementation
/dports/devel/p5-SDL/SDL-2.548/lib/pods/SDL/Mixer/
H A DSamples.pod44 depends on compilation options). It accepts two arguments, the first being a RWops object from whic…
49 B<Note>: Do not reuse the RWops-object for another call to this function!

123