browser-window-c 0.0.3

FFI bindings for the browser-window crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "../gl_surface.h"
#include "impl.h"



void bw_GlSurface_destroy( bw_GlSurface* surface ) {
	bw_GlSurfaceImpl_destroy( &surface->impl );
}

bw_GlSurface* bw_GlSurface_new( bw_Window* window ) {
	bw_GlSurface* surface = (bw_GlSurface*)malloc( sizeof( bw_GlSurface ) );

	surface->impl = bw_GlSurfaceImpl_new( window );

	return surface;
}