Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 943 Bytes

File metadata and controls

32 lines (25 loc) · 943 Bytes

DerelictTheora

A dynamic binding to libtheora version 1.1 for the D Programming Language.

Please see the sections on Compiling and Linking and The Derelict Loader, in the Derelict documentation, for information on how to build DerelictTheora and load libtheora at run time. In the meantime, here's some sample code.

// Import all of the libtheora modules
import derelict.theora;

/*
Alternatively, you can do the following:
import derelict.theora.codec;
import derelict.theora.theoraenc;
import derelict.theora.theoradec;
*/

void main() {
    // Load the libtheora codec library and its companion encoding and decoding libaries
    DerelictTheora.load();
    DerelictTheoraEnc.load();
    DerelictTheoraDec.load();

    // Now libtheora functions can be called.
    ...
}