A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/gl3d__window_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/widgets/gl/demo_wx/gl3d_window.cpp Source File

50

, m_Arcball(

CVect3

<

float

>(0.0

f

, 0.0

f

, 0.0

f

), 2.0

f

)

54

, m_CenterPoint(0.0

f

, 0.0

f

, 0.0

f

)

59

m_Camera.Init3dDefault();

64

wxSize

size

=

event

.GetSize();

65  int

h =

size

.GetHeight();

66  int

w =

size

.GetWidth();

123

glTranslatef(0.0f, 0.0f, -40.0f);

128

glTranslatef(0.0f, 0.0f,

m_Zoom

* 40.0f);

138

glRotatef(

m_XRot

, 1.0f, 0.0f, 0.0f);

139

glRotatef(

m_YRot

, 0.0f, 1.0f, 0.0f);

140

glRotatef(

m_ZRot

, 0.0f, 0.0f, 1.0f);

152

wxSize

size

= GetClientSize();

153  int

h =

size

.GetHeight();

154  int

w =

size

.GetWidth();

156

glViewport(0, 0, w, h);

158

glClearColor(0.2f, 0.2f, 0.4f, 0);

159

glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

162

glEnable(GL_DEPTH_TEST);

163

glEnable(GL_LIGHTING);

165

glEnable(GL_COLOR_MATERIAL);

166

glEnable(GL_POLYGON_SMOOTH);

198

glColor3f(1.0f, 0.5f, 0.0f);

199

glTranslatef(5.0f, 0.0f, 0.0f);

207

glColor3f(0.0f, 1.0f, 0.0f);

208

glTranslatef(-5.0f, 0.0f, 0.0f);

220

glColor3f (1.0f, 0.0f, 0.0f);

221

glVertex3f( 1.0f, 0.0f, 0.0f);

222

glVertex3f(-1.0f, 0.0f, 0.0f);

224

glColor3f (0.0f, 1.0f, 0.0f);

225

glVertex3f(0.0f, 1.0f, 0.0f);

226

glVertex3f(0.0f, -1.0f, 0.0f);

228

glColor3f (0.0f, 0.0f, 1.0f);

229

glVertex3f(0.0f, 0.0f, 1.0f);

230

glVertex3f(0.0f, 0.0f, -1.0f);

243  if

(event.ShiftDown()) {

246  x_Zoom

(event.m_x, event.m_y);

247

}

else if

(event.ControlDown()) {

250  x_Pan

(event.m_x, event.m_y);

261  if

( !event.ShiftDown() && !event.ControlDown()) {

275  if

(event.ControlDown()) {

276  x_Pan

(event.m_x, event.m_y);

288  if

(event.ShiftDown()) {

289  x_Zoom

(event.m_x, event.m_y);

335  m_Zoom

+= float(

delta

) / float(GetClientSize().GetHeight());

345

wxSize

size

= GetClientSize();

346  int

h =

size

.GetHeight();

347  int

w =

size

.GetWidth();

348

glViewport(0, 0, w, h);

354 

GLdouble modelview[16];

355

GLdouble projection[16];

357

glGetDoublev(GL_MODELVIEW_MATRIX, modelview);

358

glGetDoublev(GL_PROJECTION_MATRIX, projection);

359

glGetIntegerv(GL_VIEWPORT, viewport);

366

modelview, projection, viewport,

380

modelview, projection, viewport,

void x_Rotate(long x, long y)

void OnMouseDown(wxMouseEvent &event)

int m_PrevMouseX

previous mouse position

void x_Pan(long x, long y)

void OnMouseUp(wxMouseEvent &event)

void OnMouseMove(wxMouseEvent &event)

CVect3< float > m_CenterPoint

void OnSize(wxSizeEvent &event)

float m_XRot

we also combine Euler angles with this

void x_Zoom(long x, long y)

class CRgbaColor provides a simple abstraction for managing colors.

int gluProjectX(GLdouble objx, GLdouble objy, GLdouble objz, const GLdouble modelMatrix[16], const GLdouble projMatrix[16], const GLint viewport[4], GLdouble *winx, GLdouble *winy, GLdouble *winz)

void Resolution(int x, int y)

void SetLayout(EType type)

static void DrawCylinder(const CVect3< float > &from, const CVect3< float > &to, float radius, int rings, int slices)

void Update(int x, int y)

void SetShininess(GLfloat vl)

void SetCutoff(const GLfloat vl)

void MakeCurrent(bool save_matrices=false)

static bool CheckGlError()

Check if there are any OpenGL errors.

bool IsDragging(void) const

void On(void)

light on/off switches

void SetDirection(const TVect vt)

void SetSpecular(const CRgbaColor cl)

void SetAspectRatio(GLdouble f)

void SetPosition(const TVect vt)

int gluUnProjectX(GLdouble winx, GLdouble winy, GLdouble winz, const GLdouble modelMatrix[16], const GLdouble projMatrix[16], const GLint viewport[4], GLdouble *objx, GLdouble *objy, GLdouble *objz)

void SetDiffuse(const CRgbaColor cl)

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

const struct ncbi::grid::netcache::search::fields::SIZE size

Int4 delta(size_t dimension_, const Int4 *score_)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4