---
name: "Clutter::Cogl::Shader"
section: "3pm"
platform: "linux"
package: "libclutter-perl"
version: "1.002-1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/Clutter::Cogl::Shader"
---

# Clutter::Cogl::Shader(3pm)

## NAME

Clutter::Cogl::Shader

## METHODS

### handle = Clutter::Cogl::Shader-\>new ($shader\_type)

- •

  `$shader_type` (Clutter::Cogl::ShaderType)

### $shader-\>compile

### string = $shader-\>get\_info\_log

### $shader-\>set\_source ($source)

- •

  `$source` (string)

### shadertype = $shader-\>get\_type

## ENUMS AND FLAGS

### enum Clutter::Cogl::ShaderType

- •

  'vertex' / 'COGL\_SHADER\_TYPE\_VERTEX'

- •

  'fragment' / 'COGL\_SHADER\_TYPE\_FRAGMENT'

## SEE ALSO

Clutter

## COPYRIGHT

Copyright (C) 2006, 2007, 2008  OpenedHand Ltd

Copyright (C) 2009  Intel Corporation

This module is free software; you can redistribute it and/or modify it under the terms of either:

- •

  the GNU Lesser General Public Library version 2.1; or

- •

  the Artistic License, version 2.0.

See Clutter for the full copyright notice.
