Back to project page candy-drop.
The source code is released under:
Copyright (c) 2014, Gregory Martin All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ...
If you think the Android project candy-drop listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.gregfmartin.facetapper.utils; /* w ww . j ava2 s .c o m*/ import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.GL20; /** * Helper class for Gl20 class found in Gdx. */ public class Gl20Utils { /** * Wrapper for two common Gl20 method calls that are made per render iteration. This convenience method also * uses the custom {@link com.gregfmartin.facetapper.utils.Colour} class. * * @param colour The colour to clear the screen with (typically white) */ static public void glClearColour(Color colour) { Gdx.gl20.glClear(GL20.GL_COLOR_BUFFER_BIT); Gdx.gl20.glClearColor(colour.r, colour.g, colour.b, colour.a); } }