Changeset 3955 for libcaca/trunk


Ignore:
Timestamp:
Nov 19, 2009, 12:21:16 PM (10 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Updated C++ bindings with Canvas::fillTriangleTextured()
Location:
libcaca/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/XCode/libcacaXCode.xcodeproj/project.pbxproj

    r3926 r3955  
    88
    99/* Begin PBXFileReference section */
     10                E6A7681710B560BB008B6DEC /* caca++.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "caca++.cpp"; path = "../cxx/caca++.cpp"; sourceTree = SOURCE_ROOT; };
     11                E6A7681810B560BB008B6DEC /* caca++.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "caca++.h"; path = "../cxx/caca++.h"; sourceTree = SOURCE_ROOT; };
     12                E6A7681910B560BB008B6DEC /* cxxtest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = cxxtest.cpp; path = ../cxx/cxxtest.cpp; sourceTree = SOURCE_ROOT; };
    1013                E6DB65F610AECC7800B6F924 /* attr.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = attr.c; path = ../caca/attr.c; sourceTree = SOURCE_ROOT; };
    1114                E6DB65F710AECC7800B6F924 /* box.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = box.c; path = ../caca/box.c; sourceTree = SOURCE_ROOT; };
     
    99102                        isa = PBXGroup;
    100103                        children = (
     104                                E6A7681510B560AE008B6DEC /* cxx */,
    101105                                E6DB66FA10B176D100B6F924 /* configure.ac */,
    102106                                E6DB663A10AECDC500B6F924 /* examples */,
     
    105109                        );
    106110                        name = XCode;
     111                        sourceTree = "<group>";
     112                };
     113                E6A7681510B560AE008B6DEC /* cxx */ = {
     114                        isa = PBXGroup;
     115                        children = (
     116                                E6A7681810B560BB008B6DEC /* caca++.h */,
     117                                E6A7681710B560BB008B6DEC /* caca++.cpp */,
     118                                E6A7681910B560BB008B6DEC /* cxxtest.cpp */,
     119                        );
     120                        name = cxx;
    107121                        sourceTree = "<group>";
    108122                };
  • libcaca/trunk/cxx/caca++.cpp

    r3495 r3955  
    244244}
    245245
     246void Canvas::fillTriangleTextured(int coords[6], Canvas *tex, float uv[6])
     247{
     248    caca_fill_triangle_textured(cv, coords, tex->cv, uv);
     249}
     250
    246251int Canvas::Rand(int min, int max)
    247252{
  • libcaca/trunk/cxx/caca++.h

    r3495 r3955  
    131131    void drawThinTriangle(int, int, int, int, int, int);
    132132    void fillTriangle(int, int, int, int, int, int, uint32_t);
     133    void fillTriangleTextured(int coords[6], Canvas *tex, float uv[6]);
    133134    int setBoundaries(caca_canvas_t *, int, int, unsigned int, unsigned int);
    134135    unsigned int getFrameCount();
Note: See TracChangeset for help on using the changeset viewer.