A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/vr/reference/android/com/google/vr/sdk/base/Viewport below:

Viewport | Google VR | Google for Developers

Viewport

Stay organized with collections Save and categorize content based on your preferences.

Defines a viewport rectangle.

Fields Public Constructors Public Methods boolean void getAsArray

(int[] array, int offset)

Stores the viewport parameters into an int array.

int void setGLScissor

()

Sets the current OpenGL scissor rect based on the current viewport settings.

void setGLViewport

()

Sets the current OpenGL viewport based on the current viewport settings.

void setViewport

(int x, int y, int width, int height)

Sets a new viewport based on the provided coordinates and dimensions.

String toString

()

Returns a string containing a concise, human-readable description of this object.

Inherited Methods From class java.lang.Object boolean final Class<?>

getClass()

int

hashCode()

final void

notify()

final void

notifyAll()

String

toString()

final void

wait(long arg0, int arg1)

final void

wait(long arg0)

final void

wait()

Fields Public Constructors Public Methods public boolean equals (Object obj) public void getAsArray (int[] array, int offset)

Stores the viewport parameters into an int array.

Parameters array Array to store values in. offset Offset into the array to start writing values in. public void setGLScissor ()

Sets the current OpenGL scissor rect based on the current viewport settings.

public void setGLViewport ()

Sets the current OpenGL viewport based on the current viewport settings.

public void setViewport (int x, int y, int width, int height)

Sets a new viewport based on the provided coordinates and dimensions.

Parameters x Horizontal pixel coordinate of the bottom-left corner of the viewport. y Vertical pixel coordinate of the bottom-left corner of the viewport. width Width of the viewport in pixels. height Height of the viewport in pixels. public String toString ()

Returns a string containing a concise, human-readable description of this object.

Returns

All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-10-09 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["The `Viewport` class defines a rectangular area on the screen for rendering."],["It provides methods to set and retrieve the viewport's dimensions and position (x, y, width, height)."],["`Viewport` can be used to control the visible area of a 3D scene or a 2D image."],["Methods like `setGLViewport` and `setGLScissor` allow interaction with OpenGL for rendering control."],["The class includes utility methods like `getAsArray` and `toString` for data management and debugging."]]],["The `Viewport` class defines a rectangular area with `height`, `width`, `x`, and `y` coordinates. It includes methods to set these dimensions using `setViewport`, and to manage OpenGL settings via `setGLScissor` and `setGLViewport`. Data can be stored into an array using `getAsArray`. The class supports standard object methods like `equals`, `hashCode`, and `toString`, which provide comparison, hash code generation, and readable string representation functionalities, respectively.\n"]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4