removing commnets and also error checking
This commit is contained in:
@@ -15,20 +15,6 @@ GN_EXPORT void gnDestroyInstanceFn(gnInstance& instance) {
|
||||
|
||||
GN_EXPORT gnReturnCode gnCreateMacOSWindowSurfaceFn(gnInstance& instance, NS::Window* window, NS::View* view) {
|
||||
if (instance.instance == nullptr) instance.instance = new gnPlatformInstanceData();
|
||||
|
||||
instance.instance->metalContentView = view;
|
||||
return GN_SUCCESS;
|
||||
|
||||
}
|
||||
|
||||
// GN_EXPORT gnReturnCode gnInstanceSetWindowFn(gnInstance& instance, GLFWwindow* window) {
|
||||
// if (instance.instance == nullptr) instance.instance = new gnPlatformInstanceData();
|
||||
// instance.instance->window = window;
|
||||
|
||||
// int width, height;
|
||||
// glfwGetFramebufferSize(instance.instance->window, &width, &height);
|
||||
|
||||
// instance.instance->metalWindow = reinterpret_cast<NS::Window*>(glfwGetCocoaWindow(window));
|
||||
// instance.instance->metalContentView = reinterpret_cast<NS::View*>(glfwGetCocoaView(window));
|
||||
// return GN_SUCCESS;
|
||||
// }
|
||||
|
Reference in New Issue
Block a user