             [penumbra.opengl.frame-buffer :as fb]
             [penumbra.opengl.effects :as glfx])
   (:import (java.awt AWTException Robot Rectangle Toolkit)
-           (java.awt.image BufferedImage)
+           (java.awt.geom AffineTransform)
+           (java.awt.image AffineTransformOp BufferedImage)
+           (java.nio ByteBuffer)
            (java.io File IOException)
            (javax.imageio ImageIO)
-           (org.lwjgl.opengl Display)
+           (org.lwjgl.opengl Display GL11)
            (org.lwjgl BufferUtils)))
 
 (def #^:dynamic *gui-state* (atom {:rotate-mode :none :translate-mode :none                                    

	    (draw-shape obj))
	  (app/repaint!)))

(defn screenshot
  "Take a screenshot. Currently captures the entire screen."
  [filename state]
  ;(println [(:window-x state) (:window-y state) (:window-width state) (:window-height state)])
  (let [img-type (second (re-find (re-matcher #"\.(\w+)$" filename)))

#_"This file is part of brevis.                                                                                                                                                 
                                                                                                                                                                                     
    Ekman's Garden is free software: you can redistribute it and/or modify                                                                                                           
    it under the terms of the GNU General Public License as published by                                                                                                             
    the Free Software Foundation, either version 3 of the License, or                                                                                                                
    (at your option) any later version.                                                                                                                                              
                                                                                                                                                                                     
    Ekman's Garden is distributed in the hope that it will be useful,                                                                                                                
    but WITHOUT ANY WARRANTY; without even the implied warranty of                                                                                                                   
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                                                                                                    
    GNU General Public License for more details.                                                                                                                                     
                                                                                                                                                                                     
    You should have received a copy of the GNU General Public License                                                                                                                
    along with Ekman's Garden.  If not, see <http://www.gnu.org/licenses/>.                                                                                                          
                                                                                                                                                                                     
Copyright 2012, 2013 Kyle Harrington"     

(ns brevis.core
  (:use [penumbra opengl compute]
        [penumbra.opengl core]
