mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
opengl: Prepare for Android
This commit is contained in:
parent
64a66c57c0
commit
c07f16d9a4
@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// NOTICE: This file is not maintained well.
|
|
||||||
|
|
||||||
// +build android
|
// +build android
|
||||||
|
|
||||||
package opengl
|
package opengl
|
||||||
@ -63,6 +61,12 @@ func NewContext() *Context {
|
|||||||
StaticDraw: mgl.STATIC_DRAW,
|
StaticDraw: mgl.STATIC_DRAW,
|
||||||
Triangles: mgl.TRIANGLES,
|
Triangles: mgl.TRIANGLES,
|
||||||
Lines: mgl.LINES,
|
Lines: mgl.LINES,
|
||||||
|
zero: mgl.ZERO,
|
||||||
|
one: mgl.ONE,
|
||||||
|
srcAlpha: mgl.SRC_ALPHA,
|
||||||
|
dstAlpha: mgl.DST_ALPHA,
|
||||||
|
oneMinusSrcAlpha: mgl.ONE_MINUS_SRC_ALPHA,
|
||||||
|
oneMinusDstAlpha: mgl.ONE_MINUS_DST_ALPHA,
|
||||||
locationCache: newLocationCache(),
|
locationCache: newLocationCache(),
|
||||||
lastCompositeMode: CompositeModeUnknown,
|
lastCompositeMode: CompositeModeUnknown,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user