{"action":"created","issue":{"url":"https://api.github.com/repos/num3ric/Cinder-OculusRift/issues/5","labels_url":"https://api.github.com/repos/num3ric/Cinder-OculusRift/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/num3ric/Cinder-OculusRift/issues/5/comments","events_url":"https://api.github.com/repos/num3ric/Cinder-OculusRift/issues/5/events","html_url":"https://github.com/num3ric/Cinder-OculusRift/issues/5","id":108507391,"number":5,"title":"mirrored mode doesn't adapt to changing window size (e.g. fullscreen)","user":{"login":"grrrwaaa","id":1261957,"avatar_url":"https://avatars.githubusercontent.com/u/1261957?v=3","gravatar_id":"","url":"https://api.github.com/users/grrrwaaa","html_url":"https://github.com/grrrwaaa","followers_url":"https://api.github.com/users/grrrwaaa/followers","following_url":"https://api.github.com/users/grrrwaaa/following{/other_user}","gists_url":"https://api.github.com/users/grrrwaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/grrrwaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grrrwaaa/subscriptions","organizations_url":"https://api.github.com/users/grrrwaaa/orgs","repos_url":"https://api.github.com/users/grrrwaaa/repos","events_url":"https://api.github.com/users/grrrwaaa/events{/privacy}","received_events_url":"https://api.github.com/users/grrrwaaa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-27T01:45:31Z","updated_at":"2015-09-30T04:26:34Z","closed_at":null,"body":"Hi, this block is awesome, worked right away. One thing:\r\n\r\nIf I enter fullscreen, the mirror texture is blitted into the backbuffer at the same resolution as the original window, occupying a small fraction of the actual window. \r\n\r\nI worked around this by modifying the constructor to use the default display dimensions for the mirror texture, \r\n\r\ninitializeMirrorTexture(app::getWindow()->getDisplay()->getSize());\r\n\r\nand the blit code to respect this difference:\r\n\r\nGLint src_w = mMirrorTexture->OGL.Header.TextureSize.w;\r\n\t\tGLint src_h = mMirrorTexture->OGL.Header.TextureSize.h;\r\n\t\tconst ivec2 windowsize = app::getWindowSize();\r\n\t\tGLint dst_w = windowsize.x;\r\n\t\tGLint dst_h = windowsize.y;\r\n\t\tglBlitFramebuffer( 0, src_h, src_w, 0,\r\n\t\t\t0, 0, dst_w, dst_h,\r\n\t\t\tGL_COLOR_BUFFER_BIT, GL_LINEAR );\r\n\r\nSeems to work OK, but I'm not sure if this is the ideal solution.\r\n\r\nBTW I would also really like to be able to blit the left or right eye texture, because sometimes the mirror screen is better without the Rift distortions etc. applied. Is there a way to do this?\r\n\r\nThanx"},"comment":{"url":"https://api.github.com/repos/num3ric/Cinder-OculusRift/issues/comments/144277796","html_url":"https://github.com/num3ric/Cinder-OculusRift/issues/5#issuecomment-144277796","issue_url":"https://api.github.com/repos/num3ric/Cinder-OculusRift/issues/5","id":144277796,"user":{"login":"num3ric","id":326019,"avatar_url":"https://avatars.githubusercontent.com/u/326019?v=3","gravatar_id":"","url":"https://api.github.com/users/num3ric","html_url":"https://github.com/num3ric","followers_url":"https://api.github.com/users/num3ric/followers","following_url":"https://api.github.com/users/num3ric/following{/other_user}","gists_url":"https://api.github.com/users/num3ric/gists{/gist_id}","starred_url":"https://api.github.com/users/num3ric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/num3ric/subscriptions","organizations_url":"https://api.github.com/users/num3ric/orgs","repos_url":"https://api.github.com/users/num3ric/repos","events_url":"https://api.github.com/users/num3ric/events{/privacy}","received_events_url":"https://api.github.com/users/num3ric/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T04:26:34Z","updated_at":"2015-09-30T04:26:34Z","body":"@grrrwaaa Got it. And deleted my previous message: looks like this should be allowed by the SDK, at least on the D3D11 with the \"Mirror Variants\" sample."}}