2012-09-25 05:49:28 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#include "WebGLExtensions.h"
|
2014-11-13 20:03:50 -08:00
|
|
|
|
2012-10-03 14:13:05 -07:00
|
|
|
#include "mozilla/dom/WebGLRenderingContextBinding.h"
|
2014-11-13 20:03:50 -08:00
|
|
|
#include "WebGLContext.h"
|
2012-09-25 05:49:28 -07:00
|
|
|
|
2014-11-13 20:03:50 -08:00
|
|
|
namespace mozilla {
|
2012-09-25 05:49:28 -07:00
|
|
|
|
2014-11-13 20:03:50 -08:00
|
|
|
WebGLExtensionCompressedTextureATC::WebGLExtensionCompressedTextureATC(WebGLContext* webgl)
|
|
|
|
: WebGLExtensionBase(webgl)
|
2012-09-25 05:49:28 -07:00
|
|
|
{
|
2014-11-13 20:03:50 -08:00
|
|
|
webgl->mCompressedTextureFormats.AppendElement(LOCAL_GL_ATC_RGB);
|
|
|
|
webgl->mCompressedTextureFormats.AppendElement(LOCAL_GL_ATC_RGBA_EXPLICIT_ALPHA);
|
|
|
|
webgl->mCompressedTextureFormats.AppendElement(LOCAL_GL_ATC_RGBA_INTERPOLATED_ALPHA);
|
2012-09-25 05:49:28 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
WebGLExtensionCompressedTextureATC::~WebGLExtensionCompressedTextureATC()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2015-06-01 07:17:00 -07:00
|
|
|
IMPL_WEBGL_EXTENSION_GOOP(WebGLExtensionCompressedTextureATC, WEBGL_compressed_texture_atc)
|
2014-11-13 20:03:50 -08:00
|
|
|
|
|
|
|
} // namespace mozilla
|