• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(601)  |  Call(176)  |  Derive(0)  |  Import(425)
No Document.

src/c/l/clyther-HEAD/TRUNK/examples/future/e2.py   clyther(Download)
#================================================================================#
 
import clyther
from ctypes import c_uint
from clyther.api.cltypes import cltype
import copencl as  cl
import numpy as np

src/c/l/clyther-0.1-beta-3/examples/future/e2.py   clyther(Download)
#================================================================================#
 
import clyther
from ctypes import c_uint
from clyther.api.cltypes import cltype
import copencl as  cl
import numpy as np

src/a/s/assimp-HEAD/port/PyAssimp/pyassimp/pyassimp.py   assimp(Download)
def aiGetMaterialFloatArray(material, key):
    AI_SUCCESS = 0
    from ctypes import byref, pointer, cast, c_float, POINTER, sizeof, c_uint
    out = structs.Color4D()
    max = c_uint(sizeof(structs.Color4D))
    r=_assimp_lib.dll.aiGetMaterialFloatArray(pointer(material), 
                                            key[0], 
def aiGetMaterialString(material, key):
    AI_SUCCESS = 0
    from ctypes import byref, pointer, cast, c_float, POINTER, sizeof, c_uint
    out = structs.String()
    r=_assimp_lib.dll.aiGetMaterialString(pointer(material), 
                                            key[0], 
                                            key[1], 

src/p/y/python-iptables-HEAD/iptc/__init__.py   python-iptables(Download)
        m.u.user.name = self.name
        m.u.match_size = self.size
        m.u.user.revision = self._revision
        self._flags = ct.c_uint(0)
        if self._module.init:
            self._module.init(self._ptr)
 
        t.u.user.name = self.name
        t.u.target_size = self.size
        t.u.user.revision = self._revision
        self._flags = ct.c_uint(0)
        if self._module.init:
            self._module.init(self._ptr)
 

src/s/p/spineless-HEAD/trunk/source/spineless/lib/opengl.py   spineless(Download)
# Copyright 2007 Jussi Lepisto
 
import ctypes
import logging
import sys
from ctypes import byref, cast, create_string_buffer, sizeof, POINTER
from ctypes import (c_char, c_char_p, c_double, c_float, c_int, c_ubyte,
    def DeleteBuffer(self, buffer_handle):
        value = c_uint(buffer_handle)
        self._DeleteBuffers(1, byref(value))
 
    def DeleteFramebuffer(self, framebuffer_handle):
        value = c_uint(framebuffer_handle)
        self._DeleteFramebuffers(1, byref(value))
 
    def DeleteRenderbuffer(self, renderbuffer_handle):
        value = c_uint(renderbuffer_handle)
        self._DeleteRenderbuffers(1, byref(value))
 
    def DeleteTexture(self, texture_handle):
        value = c_uint(texture_handle)
    def GenBuffer(self):
        result = c_uint()
 
        self._GenBuffers(1, byref(result))
        return result.value
 
    def GenTexture(self):
        result = c_uint()
    def GetActiveUniform(self, program, index):
        name_length = self.GetProgram(program, self.ACTIVE_UNIFORM_MAX_LENGTH)
        name_type = c_char * name_length
 
        length = c_int()
        size = c_int()
        uniform_type = c_uint()

src/s/p/spineless-HEAD/source/spineless/lib/opengl.py   spineless(Download)
# Copyright 2007 Jussi Lepisto
 
import ctypes
import logging
import sys
from ctypes import byref, cast, create_string_buffer, sizeof, POINTER
from ctypes import (c_char, c_char_p, c_double, c_float, c_int, c_ubyte,
    def DeleteBuffer(self, buffer_handle):
        value = c_uint(buffer_handle)
        self._DeleteBuffers(1, byref(value))
 
    def DeleteFramebuffer(self, framebuffer_handle):
        value = c_uint(framebuffer_handle)
        self._DeleteFramebuffers(1, byref(value))
 
    def DeleteRenderbuffer(self, renderbuffer_handle):
        value = c_uint(renderbuffer_handle)
        self._DeleteRenderbuffers(1, byref(value))
 
    def DeleteTexture(self, texture_handle):
        value = c_uint(texture_handle)
    def GenBuffer(self):
        result = c_uint()
 
        self._GenBuffers(1, byref(result))
        return result.value
 
    def GenTexture(self):
        result = c_uint()
    def GetActiveUniform(self, program, index):
        name_length = self.GetProgram(program, self.ACTIVE_UNIFORM_MAX_LENGTH)
        name_type = c_char * name_length
 
        length = c_int()
        size = c_int()
        uniform_type = c_uint()

src/e/v/eventghost-HEAD/trunk/plugins/USB-UIRT/__init__.py   eventghost(Download)
)
 
import wx
from ctypes import (
    c_int, c_uint, c_ulong, byref, c_ubyte, c_char_p, c_void_p, POINTER, 
    WINFUNCTYPE, Structure, GetLastError, create_string_buffer, WinDLL,
    string_at, 
            dll = WinDLL('uuirtdrv')
        except:
            raise self.Exceptions.DriverNotFound
        puDrvVersion = c_uint(0)
        if not dll.UUIRTGetDrvInfo(byref(puDrvVersion)):
            raise self.Exception("Unable to retrieve uuirtdrv version!")
        if puDrvVersion.value != 0x0100:

src/e/v/eventghost-HEAD/plugins/USB-UIRT/__init__.py   eventghost(Download)
)
 
import wx
from ctypes import (
    c_int, c_uint, c_ulong, byref, c_ubyte, c_char_p, c_void_p, POINTER, 
    WINFUNCTYPE, Structure, GetLastError, create_string_buffer, WinDLL,
    string_at, 
            dll = WinDLL('uuirtdrv')
        except:
            raise self.Exceptions.DriverNotFound
        puDrvVersion = c_uint(0)
        if not dll.UUIRTGetDrvInfo(byref(puDrvVersion)):
            raise self.Exception("Unable to retrieve uuirtdrv version!")
        if puDrvVersion.value != 0x0100:

src/s/h/shapely-HEAD/shapely/coords.py   shapely(Download)
"""Coordinate sequence utilities
"""
 
from array import array
from ctypes import string_at, byref, c_char_p, c_double, c_void_p
from ctypes import c_int, c_size_t, c_uint
import sys
    def __len__(self):
        self._update()
        cs_len = c_uint(0)
        lgeos.GEOSCoordSeq_getSize(self._cseq, byref(cs_len))
        return cs_len.value
 
    def __iter__(self):
    def __call__(self, this):
        self._validate(this)
        env = this.envelope
        if env.geom_type == 'Point':
            return env.bounds
        cs = lgeos.GEOSGeom_getCoordSeq(env.exterior._geom)
        cs_len = c_uint(0)

src/v/o/votv-HEAD/trunk/platform/windows-xul/xul/components/minimize.py   votv(Download)
        self._gethrefcomp = components.classes["@participatoryculture.org/dtv/gethref;1"].getService(components.interfaces.pcfIDTVGetHREF)
        self.hInst = ctypes.windll.kernel32.GetModuleHandleW(0)
        self.wndClass = WNDCLASSEX(ctypes.sizeof(WNDCLASSEX),
                                   ctypes.c_uint(0x4200), # CS_NOCLOSE | CS_GLOBALCLASS
                                   WindProc,
                                   0,
                                   0,

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next