3D Lingo Dictionary > E-K > getHardwareInfo() |
![]() ![]() ![]() |
getHardwareInfo()
Syntax
getRendererServices().getHardwareInfo()
Description
3D rendererServices
method; returns a property list with information about the user's video card. The list contains the following properties:
#present
is a Boolean value indicating whether the computer has hardware video acceleration.
#vendor
indicates the name of the manufacturer of the video card.
#model
indicates the model name of the video card.
#version
indicates the version of the video driver.
#maxTextureSize
is a linear list containing the maximum width and height of a texture, in pixels. Textures that exceed this size are downsampled until they do not. To avoid texture sampling artifacts, author textures of various sizes and choose the ones that do not exceed the #maxTextureSize
value at run time.
#supportedTextureRenderFormats
is a linear list of texture pixel formats supported by the video card. See textureRenderFormat
for details.
#textureUnits
indicates the number of texture units available to the card.
#depthBufferRange
is a linear list of bit-depth resolutions to which the depthBufferDepth
property can be set.
#colorBufferRange
is a linear list of bit-depth resolutions to which the colorBufferDepth
property can be set.
Example
This statement displays a detailed property list of information about the user's hardware.
put getRendererServices().getHardwareInfo()
-- [#present: 1, #vendor: "NVIDIA Corporation", #model: "32MB DDR NVIDIA GeForce2 GTS (Dell)", #version: "4.12.01.0532", #maxTextureSize: [2048, 2048], #supportedTextureRenderFormats: [#rgba8888, #rgba8880, #rgba5650, #rgba5551, #rgba5550, #rgba4444], #textureUnits: 2, #depthBufferRange: [16, 24], #colorBufferRange: [16, 32]]
See also
![]() ![]() ![]() |