Code Search for Developers
 
 
  

readpixels.py from gzz at Krugle


Show readpixels.py syntax highlighted

# 
# Copyright (c) 2003, Tuomas J. Lukka
# 
# This file is part of Gzz.
# 
# Gzz is free software; you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# 
# Gzz 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 Lesser General
# Public License for more details.
# 
# You should have received a copy of the GNU Lesser General
# Public License along with Gzz; if not, write to the Free
# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA  02111-1307  USA
# 
# 


class ReadScene:
    def read(self):
	bv = GL.createByteVector(2000)
	for i in range(0, 50):
	    print bv.get(i)
	bv.readFromBuffer_ubytes(w.window, "BACK", 10, 10, 10, 10, "RGB")
	print bv
	for i in range(0, 50):
	    print bv.get(i)
    def key(self, key):
	if key == 'l':
	    self.read()
    def scene(self, vs):
	# putnoc(vs, background((0.0, 0.0, 0.0)))
	putnoc(vs, background((0.0, 0.0, 1.0)))

currentScene = ReadScene()




See more files for this project here

gzz

An implementation of Ted Nelson's ZZstructure. ZZstructure is a new type of programming platform for structured data.

Project homepage: http://savannah.nongnu.org/projects/gzz
Programming language(s): C++,Java,Python
License: lgpl21

  __init__.py
  bumpy.py
  culltest.py
  fragprog.py
  glinfo.py
  imaging.py
  mipmap.py
  pacman.py
  readpixels.py
  stencil.py
  texform.py
  texperf.py