~evantj/hare-raylib

e91d9bfcccde80d66126428936f95e6952cb01f4 — Evan Johnston 8 months ago b9e2efa
*[*]opaque -> *opaque
2 files changed, 7 insertions(+), 7 deletions(-)

M hare-raylib.py
M raylib/raylib.ha
M hare-raylib.py => hare-raylib.py +2 -2
@@ 51,10 51,10 @@ def ctype_to_hare(ctype, unsigned = False, wrapping = False, pointer_array = Fal
    if ctype[-1] == '*':
        base = ctype_to_hare(ctype[:ctype.index('*')].strip(), unsigned = unsigned)
        modifier = ctype[ctype.index('*'):]
        if pointer_array:
            modifier = modifier.replace('*', '*[*]')
        if base == "void":
            base = "opaque"
        if pointer_array and base not in ["opaque", "rAudioProcessor", "rAudioBuffer"]:
            modifier = modifier.replace('*', '*[*]')
        return modifier + base
    if ctype in types:
        if type(types[ctype]) is str:

M raylib/raylib.ha => raylib/raylib.ha +5 -5
@@ 187,7 187,7 @@ export type Rectangle = struct {
// Image, pixel data stored in CPU memory (RAM)
export type Image = struct {
	// Image raw data
	data: *[*]opaque,
	data: *opaque,
	// Image base width
	width: int,
	// Image base height


@@ 447,15 447,15 @@ export type Wave = struct {
	// Number of channels (1-mono, 2-stereo, ...)
	channels: uint,
	// Buffer data pointer
	data: *[*]opaque,
	data: *opaque,
};

// AudioStream, custom audio stream
export type AudioStream = struct {
	// Pointer to internal data used by the audio system
	buffer: *[*]rAudioBuffer,
	buffer: *rAudioBuffer,
	// Pointer to internal data processor, useful for audio effects
	processor: *[*]rAudioProcessor,
	processor: *rAudioProcessor,
	// Frequency (samples per second)
	sampleRate: uint,
	// Bit depth (bits per sample): 8, 16, 32 (24 not supported)


@@ 483,7 483,7 @@ export type Music = struct {
	// Type of music context (audio filetype)
	ctxType: int,
	// Audio context data, depends on type
	ctxData: *[*]opaque,
	ctxData: *opaque,
};

// VrDeviceInfo, Head-Mounted-Display device parameters