Home | History | Annotate | Download | only in engine

Lines Matching refs:state

36     public void initBuffers(VrState state) {
37 super.initBuffers(state);
55 private void creatOpacityAllocation(VrState state) {
56 scriptC_vr.set_opacity(state.mMaterial.getOpacityAllocation(state.mRs));
59 private void creatColorMapAllocation(VrState state) {
60 scriptC_vr.set_color_map(state.mMaterial.getColorMapAllocation(state.mRs));
64 public void setupTriangles(VrState state) {
65 super.setupTriangles(state);
69 Matrix m = state.mTransform.getMatrix(Transform.SCREEN_SPACE, Transform.VOLUME_SPACE);
73 scriptC_vr = new ScriptC_vr(state.mRs);
76 script_resize = ScriptIntrinsicResize.create(state.mRs);
86 creatColorMapAllocation(state);
87 creatOpacityAllocation(state);
92 public void raycast(VrState state) {
96 scriptC_vr.set_volume(state.mVolume.mVolumeAllocation);
97 scriptC_vr.set_bricks(state.mRsMask.mBrick_allocation);
98 scriptC_vr.set_brick_dimx(state.mRsMask.m_bricks_dimx);
99 scriptC_vr.set_brick_dimy(state.mRsMask.m_bricks_dimy);
103 scriptC_vr.set_zbuff(state.mzRangeFullAllocation);
107 if (state.mImgWidth*state.mImgHeight < 512*512) {
108 scriptC_vr.forEach_draw_z_buffer(state.mzRangeFullAllocation, state.mScrAllocation);
110 int blocks = state.mImgWidth*state.mImgHeight/(256*256);
112 options.setX(0,state.mImgWidth);
113 options.setY(i*state.mImgHeight/blocks, (i+1)*state.mImgHeight/blocks);
114 scriptC_vr.forEach_draw_z_buffer(state.mzRangeFullAllocation, state.mScrAllocation, options);
115 state.mRs.finish();