Overview
The central task of general ledger accounting is to provide a comprehensive picture of external accounting and the subjects involved. All business transactions (basic accounting and internal accounting) are recorded in a software system
In the last several weeks, I dedicated myself to one "EasyGame" series C ++ coding during my spare time. the first version source origin from . the source structure and coding style are really bad, but it full of passion that even I cocould felt
Step 1 Define Your Chart of Accounts
Skipping this step, you cannot establish the set of book
Step 2 Define Your descriptive flexfields (optional)
Step 3 Define Your Accounting Period Types
database table: Gl_period_types
Step 4 Define Your
Problem description:
As shown in:
In this example, jouranl only has one credential, And the credential has been transferred. It is reasonable to say that the journal balance should be 0, but what is the 0.01 here? I have not modified the
In the computer industry, there are usually several generations of languages to represent the development of language.
1GL or first-generation languages are languages that machine languages or machines can execute directly, that is, a string of 0
A Initialization
void Glutinit (int* argc, char** argv)
This function is used to initialize the glut library. The form corresponding to the main function should be: int main (int argc, char* argv[]);
This function obtains its two arguments from the
By ho minggui (http://blog.csdn.net/hmg25)Reprinted please indicate the source
The previous examples are solid 3D models. Today, we began to attach the gorgeous textures to these models to make them look closer to the real objects we remember.
Function startup
To use textures, we need to turn on some OpenGL switches to start some of the features we need:
gl.glEnable(GL10.GL_TEXTURE_2D);
. This call is indispensable. If you do not enable this function, you cannot map the image to a polygon.
be used later. In this example, we only have one texture.
// Create an int array with the number of textures we want,
// In this case 1.
Int [] textures =NewInt [1];
// Tell OpenGL to generate textures.
Gl. glGenTextures (1, textures, 0 );
With the same parameters you can delete the textures:
// Delete a texture.
Gl. glDeleteTextures (1, textures, 0)
Now when the texture id's are generated we need to just
Main Activity
public class TestGLCubeActivity extends Activity { /** Called when the activity is first created. */private GLSurfaceView GLMainView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); GLMainView = new GLSurfaceView(this); GLMainView.setRenderer(new MyRender06(this)); setContentView(GLMainView); } @Override protected void onResume() { // TODO Auto-generated method stub super.onResum
. getaction () {Case motionevent. action_move: Float dx = x-mpreviousx; // calculate the position of the touch pen x mrenderer. angle + = DX * touch_scale_factor; // set the Rotation Angle along the X axis requestrender (); // re-painting surface} mpreviousx = x; // record the touch pen position return true ;} public Boolean onkeydown (INT keycode, keyevent event) {If (keycode = keyevent. keycode_dpad_up) {mrenderer. X + = 0.5f;} If (keycode = keyevent. keycode_dpad_down) {mrenderer. x-= 0.5f;}
. fileuri. the setting of strict_origin_policy is to allow resources to be loaded locally. If you are not a web GL developer and do not need to develop or debug WebGL, you just want to check the WebGL Demo. You can skip this setting.
SafariFind "properties"> "advanced" in the menu, select "show development menu", go to the "Development" menu, and select "enable WebGL ".
Development procedure
The following code simply summarizes the related concepts. I
the current position. this is the code we used for the translation:
In the previous tutorial, point the square to four units inside the screen, which is equivalent to moving the current position {x: 0, y: 0, z:-4.
// Translates 4 units into the screen.
Gl. gltranslatef (0, 0,-4); OpenGL docs.
If you do several translations after each other the order of the movement is along the X, Y and Z axis, in that order. on translate the order isn't so important
,-2500000f, // bottom right Vertex-250f, 250f, // top left Vertex-2500000f,-2500000f, // left bottom Vertex};Texturedata = new float [] {250f, 250f, // top right Vertex2500000f,-2500000f, // bottom right Vertex-250f, 250f, // top left Vertex-2500000f,-2500000f, // left bottom Vertex};}Protected native long nativecreategif (string path );Protected native void nativedeletegif (long gifid );Protected native void nativecopytobitmap (Bitmap bitmap, long gifid, int left, int top );Protected native int
strict_origin_policy is to allow resources to be loaded locally. If you are not a web GL developer and do not need to develop or debug WebGL, you just want to check the WebGL Demo. You can skip this setting.
SafariFind "properties"> "advanced" in the menu, select "show development menu", go to the "Development" menu, and select "enable WebGL ".
Development procedure
The following code simply summarizes the related concepts. It comes from the referenc
and the projection coordinate transformation matrix are multiplied and saved in advance. After the model coordinate transformation matrix is ready, it is multiplied by the previous results, passed to the uniform, and then drawn.Let's take a look at the actual code.
> Some code in script. js
// Generate and initialize various matrices. var mMatrix = m. identity (m. create (); var vMatrix = m. identity (m. create (); var pMatrix = m. identity (m. create (); var tmpMatrix = m. identity (m. create
data
// Get attributeLocationvar attLocation = new Array (2); attLocation [0] = gl. getAttribLocation (prg, 'position'); attLocation [1] = gl. getAttribLocation (prg, 'color'); // Save the element prime attribute to the Array var attStride = new Array (2); attStride [0] = 3; attStride [1] = 4; // array for storing vertex location intelligence var vertex_position = [0.0, 1.0, 0.0, 1.0, 0.0, 0.0,-1.0, 0.0,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.