我正在使用Inkscape,我知道如何在图像中使用透明度,但我很生气,Inkscape中的工作区背景是白色的.我搜索了很多设置,但没有运气.
如何让工作区像GIMP一样格格不入?
如果你设计一些白色的东西,白色工作区真的很麻烦
我有一个简单的程序,它绘制了一个圆圈:/这很好......
for (k = 1; k < n+1+1; k++){
vertices[k].color = GU_COLOR( 0.0f, 0.0f, 1.0f, 0.0f );
vertices[k].x = cos_d( 360 - ((k-1) * dstep) );
vertices[k].y = sin_d( 360 - ((k-1) * dstep) );
vertices[k].z = 0.0f;
}
...
//Now draw it
sceGumDrawArray(GU_TRIANGLE_FAN, GU_COLOR_8888|GU_VERTEX_32BITF|GU_TRANSFORM_3D, n+1+1, 0, vertices);
Run Code Online (Sandbox Code Playgroud)
但这不是:
for (k = 1; k < n+1+1; k++){
vertices[k].color = GU_COLOR( 0.0f, 0.0f, 1.0f, 0.0f );
vertices[k].x = cos_d( ((k-1) * dstep) );
vertices[k].y = sin_d( ((k-1) * dstep) );
vertices[k].z …Run Code Online (Sandbox Code Playgroud) 也许你可以帮助我做到这一点.我有一个用于绘制圆的类,但编译器向我发送以下消息:
In file included from ./Includes.h:19,
from ./Circle.h:8,
from ./Circle.cpp:5:
./GameApp.h:24: error: ISO C++ forbids declaration of 'Circle' with no type
./GameApp.h:24: error: expected ';' before '*' token
Run Code Online (Sandbox Code Playgroud)
这是GameApp.h:
#include "Includes.h"
class GameApp {
public:
GameApp();
~GameApp();
void Render();
protected:
void InitGU();
bool Controls();
void *dList; // display List, used by sceGUStart
void *fbp0; // frame buffer
Circle* circle;
};
Run Code Online (Sandbox Code Playgroud)
Include.h看起来像这样:
//************************************************************************
// Includes.h
//************************************************************************
#include <malloc.h> //For memalign()
#include <pspkernel.h>
#include <pspdisplay.h>
#include <pspdebug.h>
#include <stdio.h>
#include <psprtc.h> // …Run Code Online (Sandbox Code Playgroud)