GGE.py

Wed, 02 Oct 2013 12:03:21 +0000

author
cemkalyoncu
date
Wed, 02 Oct 2013 12:03:21 +0000
changeset 350
00b5c60006e0
permissions
-rwxr-xr-x

* GDB pretty print functionality
- Nothing is really there, only the boilerplate
* Internal shaders are now compatible with pixel shader version 1.3

import gdb

class gge_utils_PerformanceTimerPrinter:
	def __init__(self, val):
		self.val=val
		
	def to_string(self):
		return self.val['passed']
	


def lookup_type(val):
     if str(val.type) == 'gge::utils::PerformanceTimer':
        return gge_utils_PerformanceTimerPrinter(val)
	
     return None


gdb.pretty_printers.append(lookup_type)

mercurial