Commit f5131b34 authored by Dalai Felinto's avatar Dalai Felinto
Browse files

use different width and height for each eye

parent bf028be8
......@@ -63,8 +63,8 @@ class HMD_Base:
self._name = name
self._error_callback = error_callback
self._current_eye = 0
self._width = 0
self._height = 0
self._width = [0, 0]
self._height = [0, 0]
self._projection_matrix = [Matrix.Identity(4), Matrix.Identity(4)]
self._modelview_matrix = [Matrix.Identity(4), Matrix.Identity(4)]
self._framebuffer_object = [0, 0]
......
......@@ -52,8 +52,10 @@ class Oculus(HMD_Base):
self._hmd = HMD()
# gather arguments from HMD
self._width = self._hmd.width
self._height = self._hmd.height
self._width[0] = self._hmd.width_left
self._height[0] = self._hmd.height_left
self._width[1] = self._hmd.width_right
self._height[1] = self._hmd.height_right
self._projection_matrix[0] = self._hmd.projection_matrix_left
self._projection_matrix[1] = self._hmd.projection_matrix_right
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment