• 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/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/c/o/cogen-0.2.1/cogen/core/proactors/ctypes_iocp_impl/api_wrappers.py   cogen(Download)
from ctypes import WINFUNCTYPE, GetLastError, \
            windll, pythonapi, cast, WinError, create_string_buffer, \
            c_ushort, c_ubyte, c_char, WINFUNCTYPE, c_short, c_ubyte, \
            c_int, c_uint, c_long, c_ulong, c_void_p, byref, c_char_p, \
            Structure, Union, py_object, POINTER, pointer, sizeof, string_at
 
from ctypes.wintypes import HANDLE, ULONG, DWORD, BOOL, LPCSTR, LPCWSTR, WinError

src/c/0/c.seungjin.net-HEAD/lib/python2.5/site-packages/django/contrib/gis/geos/collections.py   c.seungjin.net(Download)
"""
 This module houses the Geometry Collection objects:
 GeometryCollection, MultiPoint, MultiLineString, and MultiPolygon
"""
from ctypes import c_int, c_uint, byref
from django.contrib.gis.geos.error import GEOSException, GEOSIndexError
from django.contrib.gis.geos.geometry import GEOSGeometry
            # allow GEOSGeometry types (python wrappers) or pointer types
            geoms[i] = capi.geom_clone(getattr(g, 'ptr', g))
 
        return capi.create_collection(c_int(self._typeid), byref(geoms), c_uint(length))
 
    def _get_single_internal(self, index):
        return capi.get_geomn(self.ptr, index)

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