def on_resize(self, width, height):
print(f"Resize {width} * {height}")
# before: gl.glViewport(0, 0, width, height)
gl.glViewport(0, 0, width * 2, height * 2) # multiply width & height by 2
self.camera.width = width
self.camera.height = height
def on_resize(self, width, height):
printf("Resize %d * %d", width, height)
if (platform.system() == "Darwin"):
width = width * 2
height = height * 2
self.camera.width = width
self.camera.height = height
If you have problem when you using Mac:
if the size was only 1/4, like this
Python Minecraft Clone(MCPY) All platform Version
https://github.com/CrispyFlowe/PythonMinecraftClone-Compatible-with-all-platforms-Version
You can try to change like this:
It will be normal:
If you still have problem, you can contact me at
if MacBook have this problem, I suggest
#import platform