rename to projects (DOES NOT COMPILE)
This commit is contained in:
12
projects/core/src/framebuffer/gryphn_framebuffer.c
Normal file
12
projects/core/src/framebuffer/gryphn_framebuffer.c
Normal file
@@ -0,0 +1,12 @@
|
||||
#include "gryphn_framebuffer.h"
|
||||
#include "gryphn_platform_functions.h"
|
||||
|
||||
gnReturnCode gnCreateFramebuffer(gnFramebuffer* framebuffer, gnOutputDeviceHandle device, gnFramebufferInfo framebufferInfo) {
|
||||
*framebuffer = malloc(sizeof(struct gnFramebuffer_t));
|
||||
(*framebuffer)->device = device;
|
||||
return device->deviceFunctions->_gnCreateFramebuffer(*framebuffer, device, framebufferInfo);
|
||||
}
|
||||
|
||||
void gnDestroyFramebuffer(gnFramebuffer framebuffer) {
|
||||
framebuffer->device->deviceFunctions->_gnDestroyFramebuffer(framebuffer);
|
||||
}
|
||||
Reference in New Issue
Block a user