Exemple #1
0
 public static unsafe Rectangle GetViewport(int x, int y, int width, int height)
 {
     libobs.gs_rect rect = new libobs.gs_rect();
     libobs.gs_get_viewport(out rect);
     return new Rectangle(rect.x, rect.y, rect.cx, rect.cy);
 }
Exemple #2
0
 public static unsafe Rectangle GetViewport(int x, int y, int width, int height)
 {
     libobs.gs_rect rect = new libobs.gs_rect();
     libobs.gs_get_viewport(out rect);
     return(new Rectangle(rect.x, rect.y, rect.cx, rect.cy));
 }