# # Copyright (C) 2007 Jan Dvorak # # This program is distributed under the terms of the MIT license. # See the included MIT-LICENSE file for the terms of this license. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # require 'test/unit' class Test_EXT_ATI < Test::Unit::TestCase def setup common_setup() end def teardown common_teardown() end def test_gl_ati_draw_buffers return if not supported?("GL_ATI_draw_buffers") glDrawBuffersATI([GL_BACK_LEFT,GL_FRONT_LEFT]) assert_equal(glGetIntegerv(GL_DRAW_BUFFER0),GL_BACK_LEFT) assert_equal(glGetIntegerv(GL_DRAW_BUFFER1),GL_FRONT_LEFT) end end