Hello CrystaSpace Team and community
and a happy new year!
The following bit of code works fine on a machine running WinXP SP2, CS
VER.1.2.1 and no graphics accelerator, but fails to work on a new machine
running WIN7 and CS VER1.4 with a nvidia accelerator:
csRef<iTextureHandle> cover_tex_handle =
loader->LoadTexture("lib/std/colors.jpg",
CS_TEXTURE_2D,
0,
0);
csSimplePixmap cover_tex_pxmp = csSimplePixmap(cover_tex_handle);
// TEXTURE TO BE TILED UPON ( BACKGROUND TEXTURE ):
iTextureWrapper *bkgnd_tex_wrap = engine->GetTextureList()->FindByName("tile");
g3d->SetRenderTarget( bkgnd_tex_wrap->GetTextureHandle(), true );
g3d->BeginDraw(CSDRAW_2DGRAPHICS);
cover_tex_pxmp.DrawTiled( g3d, 0, 0, 50, 20, 20, 30, 0);
g3d->FinishDraw ();
A review of the API documentation shows no differences between the CS functions
in the two CS versions, except SetRenderTarget, which I could not understand
what the differece is and how it affects me.
Is there something missing from the code that should be there in the 1.4
version, or can the problem be attributed to hardware differeces only? or is it
WIN7's fault? :-s
ideas?
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe:
mailto:[email protected]?subject=unsubscribe