我是新來Direct3D11和我目前想我的代碼中編程創建紋理使用此代碼我在網上找到: // Some Constants
int w = 256;
int h = 256;
int bpp = 4;
int *buf = new int[w*h];
//declarations
ID3D11Texture2D* tex;
D3D11_TEXTURE2D_DESC sTexDesc;
我不明白如何從生成的jar文件加載文件。 這是我的代碼,它工作正常的IDE中,而不是當我運行jar: URL url = ClassLoader.getSystemResource(".");
try
{
File dir = new File(url.toURI());
for (File f : dir.listFiles())
{